diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-07-08 20:51:54 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-07-08 21:21:12 +0200 |
commit | e6ed73d87836b20b004008fd9725f2fae3618dad (patch) | |
tree | 00f5b314788a1fba90719120e807aa330d22f968 | |
parent | 2f5d6f904157f8b408fc0840ca2e98f3932aa80e (diff) |
Fix tests.
The tests were accidentally never actually running anything before.
-rwxr-xr-x | debian/tests/upstream.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/debian/tests/upstream.sh b/debian/tests/upstream.sh index e450c59..419d9a6 100755 --- a/debian/tests/upstream.sh +++ b/debian/tests/upstream.sh @@ -3,15 +3,14 @@ set -e set -u -testdir=$PWD/test +testdir=test +cp -R $testdir $AUTOPKGTEST_TMP cd $AUTOPKGTEST_TMP for py3ver in $(py3versions -vs) do echo "Running tests with Python ${py3ver}." - for t in $(find $testdir -type f -name 'test_*.py') - do - echo "Running test ${t}." - /usr/bin/python${py3ver} -B $t - done + /usr/bin/python${py3ver} -B -m pytest $testdir + rm -rf .pytest_cache + echo "**********" done |