From: Joel Rosdahl Date: Fri, 28 Aug 2020 15:02:25 +0000 (+0200) Subject: Reset environment variables before running test suite probe X-Git-Tag: v4.0~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86cb81c3bd916351de616d0debe2c5fa7473f6d6;p=thirdparty%2Fccache.git Reset environment variables before running test suite probe This makes it possible to use $CCACHE in a stable way in probe functions. --- diff --git a/test/run b/test/run index 692f755d9..4cd1578a5 100755 --- a/test/run +++ b/test/run @@ -281,6 +281,29 @@ expect_perm() { fi } +reset_environment() { + while read name; do + unset $name + done </dev/null 2>&1; then mkdir $ABS_TESTDIR/probe cd $ABS_TESTDIR/probe @@ -313,30 +338,10 @@ run_suite() { TEST() { CURRENT_TEST=$1 - - while read name; do - unset $name - done <