[pybtex] 10/20: Run the tests in isolation from the source tree

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Jul 22 21:04:54 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository pybtex.

commit e62eaa1d91d6a69538671b86fbc405657196e4c2
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Jul 21 18:24:36 2017 +0100

    Run the tests in isolation from the source tree
---
 debian/rules | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 822ab9c..fbaa63b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,13 +3,12 @@
 #export DEB_BUILD_OPTIONS=nocheck
 export PYBUILD_NAME=pybtex
 
+export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
+
 %:
 	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
 
-.PHONY: override_dh_auto_test
-override_dh_auto_test:
-	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -Wd -m nose -v" dh_auto_test
-
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybtex.git



More information about the debian-science-commits mailing list