[python-pymeasure] 03/09: Adapt the autopkgtests to the new upstream layout

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Aug 18 16:08:49 UTC 2017


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

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

commit 6322feec3e7b5bd1af639ef568885e793b3649c9
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Aug 18 15:59:58 2017 +0100

    Adapt the autopkgtests to the new upstream layout
    
    Reason: Upstream moved the test suite outside the Python package, so the
    tests can no longer be launched with --pyargs. Instead, the test suite
    is copied from the source tree to the test bed before running pytest.
    
    Gbp-Dch: Full
---
 debian/tests/control | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/tests/control b/debian/tests/control
index d731838..41db540 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,8 +1,9 @@
 Test-Command: set -e
+ ; cp -r tests "$AUTOPKGTEST_TMP"
  ; for py in $(py3versions -r 2>/dev/null)
  ; do cd "$AUTOPKGTEST_TMP"
  ; echo "Testing with $py:"
- ; $py -m pytest -v --pyargs pymeasure
+ ; $py -m pytest -v tests
  ; done
 Depends: python3-all,
          python3-pymeasure,

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



More information about the debian-science-commits mailing list