From 6c1710d7444687880473b69ba802d525fd0441c6 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 29 Nov 2020 03:35:41 +0100 Subject: [PATCH] Fixup autopkgtests for new upstream version Bump path to test files in autopkgtest tests, and declare dependency on the pytest module. --- debian/changelog | 2 +- debian/tests/control | 2 +- debian/tests/run-testsuite-if-acls-enabled | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index c13c12d..c3522a2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,7 +12,7 @@ python-pylibacl (0.6.0-1) unstable; urgency=low * New standards version 4.5.1, no changes needed. * Switch to debhelper v13. - -- Iustin Pop Sun, 29 Nov 2020 03:28:33 +0100 + -- Iustin Pop Sun, 29 Nov 2020 03:42:27 +0100 python-pylibacl (0.5.4-3) unstable; urgency=medium diff --git a/debian/tests/control b/debian/tests/control index ddf064e..893108f 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,3 +1,3 @@ Tests: simple run-testsuite-if-acls-enabled -Depends: @, acl +Depends: @, acl, python3-pytest Restrictions: allow-stderr diff --git a/debian/tests/run-testsuite-if-acls-enabled b/debian/tests/run-testsuite-if-acls-enabled index 1ba2e95..f1d3c42 100755 --- a/debian/tests/run-testsuite-if-acls-enabled +++ b/debian/tests/run-testsuite-if-acls-enabled @@ -8,9 +8,9 @@ if setfacl -m u:root:r "$TESTFILE"; then echo "Temporary directory '$AUTOPKGTEST_TMP' has ACLs enabled, running tests" export TEST_DIR="$AUTOPKGTEST_TMP" echo "* testing Python 3" - python3 test/test_acls.py + python3 tests/test_acls.py echo "* testing Python 3 debug package" - python3-dbg test/test_acls.py + python3-dbg tests/test_acls.py else echo "Temporary directory '$AUTOPKGTEST_TMP' doesn't have extended attributes enabled" echo "Skipping the tests :(" -- 2.39.5