summaryrefslogtreecommitdiff
path: root/test-env.in
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-10-31 13:49:16 +0100
committerLudovic Courtès <ludo@gnu.org>2014-10-31 16:54:45 +0100
commitd8805b95f5ab563f0b8baf320f1200ca51667793 (patch)
tree525e3fbf22bc1fe563f42167278c0d2bdda9597d /test-env.in
parentc268a0d4a6f8656828a34252dc825c312f6e518e (diff)
build: Unset 'CDPATH' in 'test-env'.
Reported by Mathieu Lirzin. * test-env.in: Unset 'CDPATH'.
Diffstat (limited to 'test-env.in')
-rw-r--r--test-env.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-env.in b/test-env.in
index 792830c29b..39b205dc8a 100644
--- a/test-env.in
+++ b/test-env.in
@@ -24,6 +24,11 @@
# `pre-inst-env'. This is used to run unit tests with the just-built
# daemon, unless `--disable-daemon' was passed at configure time.
+
+# Make sure 'cd' behaves deterministically and doesn't write anything to
+# stdout.
+unset CDPATH
+
if [ -x "@abs_top_builddir@/guix-daemon" ]
then
NIX_SETUID_HELPER="@abs_top_builddir@/nix-setuid-helper" # normally unused