diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-07-10 10:46:55 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-07-10 10:46:55 +0200 |
commit | 9b580182e9213abbcf28d6682722bb1fe4e5caff (patch) | |
tree | 296728c565308453301e4613f23021b687697220 /debian/tests/python-upstream.sh | |
parent | 3cabcd4d18424af8140b89d2e26661a0cbb3f6fe (diff) |
Leverage PyTest to simplify autopkgtests.
Diffstat (limited to 'debian/tests/python-upstream.sh')
-rwxr-xr-x | debian/tests/python-upstream.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/tests/python-upstream.sh b/debian/tests/python-upstream.sh index 499cc0f2..8fd4695f 100755 --- a/debian/tests/python-upstream.sh +++ b/debian/tests/python-upstream.sh @@ -5,11 +5,14 @@ set -u helper=$PWD/debian/tests/upstream.py testdir=$PWD/src/python/test +cp $helper $AUTOPKGTEST_TMP +cp -R $testdir $AUTOPKGTEST_TMP cd $AUTOPKGTEST_TMP for py3ver in $(py3versions -vs) do echo "Running tests with Python ${py3ver}." - /usr/bin/python${py3ver} -B $helper $testdir + /usr/bin/python${py3ver} -B upstream.py test + rm -rf .pytest_cache echo "**********" done |