summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/tests/upstream.sh11
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