Commit 23c61127 authored by Mattia Rizzolo's avatar Mattia Rizzolo

d/tests/pytest: Run against all supported python3 versions.

Also move from the deprecated ADTTMP to AUTOPKGTEST_TMP.
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 91d7e192
Pipeline #79595 passed with stage
in 20 minutes and 40 seconds
......@@ -2,9 +2,9 @@
set -e
if ! [ -d "$ADTTMP" ]; then
echo "ADTTMP not set." >&2
exit 1
if ! [ -d "$AUTOPKGTEST_TMP" ]; then
echo "AUTOPKGTEST_TMP not set." >&2
exit 1
fi
export LIBGUESTFS_MEMSIZE=128
......@@ -12,5 +12,9 @@ if [ "$(basename "$0")" = "pytest-with-recommends" ]; then
export DIFFOSCOPE_FAIL_TESTS_ON_MISSING_TOOLS="apktool zipinfo pedump oggDump ppudump cbfstool otool lipo"
fi
cp -r tests "$ADTTMP"
(cd "$ADTTMP"; py.test-3 -vv -l -r a)
for py in $(py3versions -s); do
echo "@@@@@@@@ Running against $py"
cp -r tests "$AUTOPKGTEST_TMP"
(cd "$AUTOPKGTEST_TMP"; "$py" -m pytest -vv -l -r a)
rm -rf "${AUTOPKGTEST_TMP:?}"/*
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment