[med-svn] [python-pysam] 01/02: Fix autopkgtest

Andreas Tille tille at debian.org
Thu Mar 13 17:17:06 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 a35d9c29a2d873a535b14b71788d8a5b83f2be40
Author: Andreas Tille <tille at debian.org>
Date:   Tue Mar 11 20:30:01 2014 +0100

    Fix autopkgtest
---
 debian/changelog           |  7 +++++++
 debian/tests/run-unit-test | 13 ++++++-------
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c926407..c0b8f8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-pysam (0.7.5-4) UNRELEASED; urgency=medium
+
+  * Fix autotest
+    #741274
+
+ -- Andreas Tille <tille at debian.org>  Tue, 11 Mar 2014 20:08:15 +0100
+
 python-pysam (0.7.5-3) unstable; urgency=medium
 
   * Do not install tests in world writable dir
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index e0a0efa..4c39689 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -1,16 +1,15 @@
 #!/bin/sh -e
 
-TMPDIR=`mktemp -d /tmp/python-pysam-test.XXXXXX`
-cp -a /usr/share/doc/python-pysam/tests/* $TMPDIR
-cd $TMPDIR
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/python-pysam-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/python-pysam/tests/* $ADTTMP
+cd $ADTTMP
 gunzip -r *.py.gz \
-        ex10.bam.gz \
         ex9_fail.bam.gz \
         ex9_nofail.bam.gz \
-        example_bai.bam.gz \
         example_empty_header.bam.gz \
-        example_unmapped_reads_no_sq.bam.gz \
-        example_user_header.bam.gz \
         issue100.bam.gz
 chmod u+x ./pysam_test_offline.py
 ./pysam_test_offline.py

-- 
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