summary refs log tree commit diff
diff options
context:
space:
mode:
-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