summaryrefslogtreecommitdiff
path: root/t-func
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-10-30 20:03:30 +0100
committerGuillem Jover <guillem@debian.org>2016-10-30 20:14:31 +0100
commitc84047753a72533f716c9ab245cce01297ccb297 (patch)
tree367682de3b36456adf6dad5f330a0a519a4f1938 /t-func
parent9921c4e45a37e6bd567fc7134176effbd59d0beb (diff)
downloaddpkg-c84047753a72533f716c9ab245cce01297ccb297.tar.gz
t-func: Unset compressor environment variables
We should make the functional tests impervious to environment variables. Reported-by: Sven Joachim <svenjoac@gmx.de>
Diffstat (limited to 't-func')
-rw-r--r--t-func/atlocal.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/t-func/atlocal.in b/t-func/atlocal.in
index 491ef4daa..9b8a44129 100644
--- a/t-func/atlocal.in
+++ b/t-func/atlocal.in
@@ -13,6 +13,12 @@ export TZ
SOURCE_DATE_EPOCH=0
export SOURCE_DATE_EPOCH
+# Cleanup variables that might affect the tests.
+unset GZIP
+unset BZIP
+unset XZ_OPT
+unset XZ_DEFAULTS
+
if [ "$(id -u)" = 0 ]; then
ASROOT=
elif which fakeroot >/dev/null; then