From e6ed73d87836b20b004008fd9725f2fae3618dad Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Wed, 8 Jul 2020 20:51:54 +0200 Subject: Fix tests. The tests were accidentally never actually running anything before. --- debian/tests/upstream.sh | 11 +++++------ 1 file 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 -- cgit v1.2.3