[Git][reproducible-builds/diffoscope][master] d/tests/pytest: Run against all supported python3 versions.

Mattia Rizzolo gitlab at salsa.debian.org
Fri Oct 18 12:20:41 UTC 2019



Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope


Commits:
23c61127 by Mattia Rizzolo at 2019-10-18T12:19:50Z
d/tests/pytest: Run against all supported python3 versions.

Also move from the deprecated ADTTMP to AUTOPKGTEST_TMP.

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- debian/tests/pytest


Changes:

=====================================
debian/tests/pytest
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/23c611275ddbd2f220e3ce5af9bd8845b108a2bf

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/23c611275ddbd2f220e3ce5af9bd8845b108a2bf
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20191018/760a6051/attachment.htm>


More information about the rb-commits mailing list