Browse Source

t-func: Unset compressor environment variables

We should make the functional tests impervious to environment variables.

Reported-by: Sven Joachim <svenjoac@gmx.de>
Guillem Jover 9 years ago
parent
commit
c84047753a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      t-func/atlocal.in

+ 6 - 0
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