From 4386533fc14175f9ee6bc7cace2d7121c86da2cf Mon Sep 17 00:00:00 2001 From: Debian Janitor Date: Fri, 18 Sep 2020 20:39:19 +0000 Subject: [PATCH] Replace use of deprecated $ADTTMP with $AUTOPKGTEST_TMP. Changes-By: lintian-brush Fixes: lintian: uses-deprecated-adttmp See-also: https://lintian.debian.org/tags/uses-deprecated-adttmp.html --- debian/tests/run-testsuite-if-attrs-enabled | 8 ++++---- debian/tests/simple | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/tests/run-testsuite-if-attrs-enabled b/debian/tests/run-testsuite-if-attrs-enabled index c61b529..438538e 100755 --- a/debian/tests/run-testsuite-if-attrs-enabled +++ b/debian/tests/run-testsuite-if-attrs-enabled @@ -1,17 +1,17 @@ #!/bin/sh -TESTFILE="$ADTTMP/foo" +TESTFILE="$AUTOPKGTEST_TMP/foo" touch "$TESTFILE" if setfattr -n user.foo -v bar "$TESTFILE"; then - echo "Temporary directory '$ADTTMP' has extended attributes, running tests" - export TEST_DIR="$ADTTMP" + echo "Temporary directory '$AUTOPKGTEST_TMP' has extended attributes, running tests" + export TEST_DIR="$AUTOPKGTEST_TMP" echo "* testing Python 3" python3 test/test_xattr.py echo "* testing Python 3 debug package" python3-dbg test/test_xattr.py else - echo "Temporary directory '$ADTTMP' doesn't have extended attributes enabled" + echo "Temporary directory '$AUTOPKGTEST_TMP' doesn't have extended attributes enabled" echo "Skipping the tests :(" fi diff --git a/debian/tests/simple b/debian/tests/simple index fe741aa..aff76be 100755 --- a/debian/tests/simple +++ b/debian/tests/simple @@ -3,7 +3,7 @@ # switch directory into temp dir to ensure we don't try to use the # 'xattr.so' from the source package (if autopkgtest has built the # package): -cd "$ADTTMP/" +cd "$AUTOPKGTEST_TMP/" # and now simply import the modules: python3 -c 'import xattr; print(xattr); print(xattr.__version__)' -- 2.39.5