[med-svn] [python-pysam] 01/01: Do not provide a code copy of the test script in README.Debian but rather provide the script for execution; create temp dir using mktemp; upload to unstable

Andreas Tille tille at debian.org
Sun Mar 2 08:56:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository python-pysam.

commit d998823d2b037d4c38c7234d2cfc13278484c511
Author: Andreas Tille <tille at debian.org>
Date:   Sun Mar 2 09:18:00 2014 +0100

    Do not provide a code copy of the test script in README.Debian but rather provide the script for execution; create temp dir using mktemp; upload to unstable
---
 debian/changelog                        | 3 ++-
 debian/python-pysam-tests.README.Debian | 9 ++++-----
 debian/python-pysam-tests.docs          | 1 +
 debian/tests/run-unit-test              | 5 +++--
 4 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aed98f6..c926407 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
-python-pysam (0.7.5-3) UNRELEASED; urgency=medium
+python-pysam (0.7.5-3) unstable; urgency=medium
 
   * Do not install tests in world writable dir
+    Closes: #739575
 
  -- Andreas Tille <tille at debian.org>  Sat, 01 Mar 2014 23:40:21 +0100
 
diff --git a/debian/python-pysam-tests.README.Debian b/debian/python-pysam-tests.README.Debian
index 61a30cd..ed86b39 100644
--- a/debian/python-pysam-tests.README.Debian
+++ b/debian/python-pysam-tests.README.Debian
@@ -2,12 +2,11 @@ Pysam for Debian
 ================
 
 To verify whether your python-pysam modules are working correctly
-you can run the test suite manually via
+you can run the test suite manually by running the script
 
-    cp -a /usr/share/doc/python-pysam/tests /tmp
-    cd /tmp/tests
-    gunzip -r *
-    ./pysam_test.py
+    run-unit-test
+
+in this directory.
 
  -- Andreas Tille <tille at debian.org>  Fri, 07 Feb 2014 18:29:40 +0100
 
diff --git a/debian/python-pysam-tests.docs b/debian/python-pysam-tests.docs
new file mode 100644
index 0000000..760739f
--- /dev/null
+++ b/debian/python-pysam-tests.docs
@@ -0,0 +1 @@
+debian/tests/run-unit-test
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 50eac1f..e0a0efa 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -1,7 +1,8 @@
 #!/bin/sh -e
 
-cp -a /usr/share/doc/python-pysam/tests /tmp
-cd /tmp/tests
+TMPDIR=`mktemp -d /tmp/python-pysam-test.XXXXXX`
+cp -a /usr/share/doc/python-pysam/tests/* $TMPDIR
+cd $TMPDIR
 gunzip -r *.py.gz \
         ex10.bam.gz \
         ex9_fail.bam.gz \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list