Tests are now working in /var/lib/pysam
authorAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 13:50:18 +0000 (14:50 +0100)
committerAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 13:50:18 +0000 (14:50 +0100)
debian/python-pysam-tests.postinst
debian/rules

index 4bbaf1c31faecb700285eab782125eb5c2d905ae..b9d63ddba947f96bb8fc29e1bc5987ed1e1106f9 100644 (file)
@@ -5,8 +5,7 @@ set -e
 case "$1" in
     configure)
         chmod a+w /var/lib/pysam/tests
-        chmod a+w /var/lib/pysam/tests/*.sam*
-        chmod a+w /var/lib/pysam/tests/pysam_test_work
+        chmod a+w /var/lib/pysam/tests/*.[bs]am*
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
index 659bc1d879885fdc4637f697f6e9fab52b80ab01..87fa96b3ee486e1bf82e32790359fe70975112c1 100755 (executable)
@@ -36,7 +36,10 @@ endif
 
 override_dh_install-indep:
        dh_install -p $(TESTPKG)
-       cd debian/$(TESTPKG)/var/lib/pysam; make clean
+       cd debian/$(TESTPKG)/var/lib/pysam/tests; \
+           make clean; \
+           rm -f log.txt ; \
+           chmod a+x tabix_test.py
 
 override_dh_auto_clean:
        dh_auto_clean