[med-svn] [python-cobra] 01/05: Run autopkgtests from outside the source tree

Afif Elghraoui afif-guest at moszumanska.debian.org
Tue Dec 22 06:21:24 UTC 2015


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

afif-guest pushed a commit to branch master
in repository python-cobra.

commit 7839240be22d72800e682fed3fbbd4acd749a340
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Dec 12 23:43:54 2015 -0800

    Run autopkgtests from outside the source tree
    
    There is an import conflict when executing the tests
    from the source tree root.
    See https://lists.debian.org/debian-python/2015/12/msg00031.html
---
 debian/tests/control | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 37164ef..134074d 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,7 +1,7 @@
-Test-Command: python -c "from sys import exit; from cobra.test import test_all; exit(test_all())"
+Test-Command: cd $ADTTMP && python -c "from sys import exit; from cobra.test import test_all; exit(test_all())"
 Depends: python-cobra, python-cobra-data
 Restrictions: allow-stderr, needs-recommends
 
-Test-Command: python3 -c "from sys import exit; from cobra.test import test_all; exit(test_all())"
+Test-Command: cd $ADTTMP && python3 -c "from sys import exit; from cobra.test import test_all; exit(test_all())"
 Depends: python3-cobra, python-cobra-data
 Restrictions: allow-stderr, needs-recommends

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



More information about the debian-med-commit mailing list