[med-svn] r17172 - trunk/packages/python-biopython/trunk/debian

Andreas Tille tille at moszumanska.debian.org
Mon Jun 16 08:07:06 UTC 2014


Author: tille
Date: 2014-06-16 08:07:06 +0000 (Mon, 16 Jun 2014)
New Revision: 17172

Modified:
   trunk/packages/python-biopython/trunk/debian/changelog
   trunk/packages/python-biopython/trunk/debian/rules
Log:
Use HOME in build_dir for testing


Modified: trunk/packages/python-biopython/trunk/debian/changelog
===================================================================
--- trunk/packages/python-biopython/trunk/debian/changelog	2014-06-16 06:40:30 UTC (rev 17171)
+++ trunk/packages/python-biopython/trunk/debian/changelog	2014-06-16 08:07:06 UTC (rev 17172)
@@ -1,6 +1,7 @@
-python-biopython (1.64+dfsg-2) UNRELEASED; urgency=medium
+python-biopython (1.64+dfsg-2) unstable; urgency=medium
 
-  * Use mktemp as HOME for testing
+  * Use HOME in build_dir for testing (thanks to Jakub Wilk <jwilk at debian.org>
+    for the patch)
     Closes: #751586
 
  -- Andreas Tille <tille at debian.org>  Sat, 14 Jun 2014 20:12:02 +0200

Modified: trunk/packages/python-biopython/trunk/debian/rules
===================================================================
--- trunk/packages/python-biopython/trunk/debian/rules	2014-06-16 06:40:30 UTC (rev 17171)
+++ trunk/packages/python-biopython/trunk/debian/rules	2014-06-16 08:07:06 UTC (rev 17172)
@@ -69,13 +69,13 @@
 	# in the Debian package dialign it is not needed to set DIALIGN2_DIR but the test is verifying this dir 
 	# to run the EMBOSS test test_Emboss also requires to have the environment variable EMBOSS_ROOT set
 	LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
-		--test-args='mkdir -p {build_dir}/Doc; \
+		--test-args='set -e; \
+                             mkdir -p {build_dir}/home; \
+                             mkdir -p {build_dir}/Doc; \
                              cp -a Doc/Tutorial.tex {build_dir}/Doc; \
                              cp -a Tests {build_dir}; \
                              cd {build_dir}/Tests; \
-                             tmpdir=`mktemp -d` ; \
-                             env DIALIGN2_DIR=/usr/share/dialign EMBOSS_ROOT=/usr/lib/emboss HOME=$$tmpdir {interpreter} run_tests.py --offline' ; \
-                             rm -rf $$tmpdir
+                             env DIALIGN2_DIR=/usr/share/dialign EMBOSS_ROOT=/usr/lib/emboss HOME={build_dir}/home {interpreter} run_tests.py --offline'
 	mv Tests_avoid/* Tests
 	rmdir Tests_avoid
 




More information about the debian-med-commit mailing list