[dpkg] 138/187: t-func: Unset compressor environment variables

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit c84047753a72533f716c9ab245cce01297ccb297
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Oct 30 20:03:30 2016 +0100

    t-func: Unset compressor environment variables
    
    We should make the functional tests impervious to environment variables.
    
    Reported-by: Sven Joachim <svenjoac at gmx.de>
---
 t-func/atlocal.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/t-func/atlocal.in b/t-func/atlocal.in
index 491ef4d..9b8a441 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list