Explorar el Código

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 hace 9 años
padre
commit
c84047753a
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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