about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/init.sh2
-rw-r--r--tests/simple.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/init.sh b/tests/init.sh
index c7d21ba076b9..bcff1e240dc5 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -104,3 +104,5 @@ $nixstore --init
 # Did anything happen?
 test -e "$NIX_DB_DIR"/info
 test -e "$NIX_DB_DIR"/referrer
+
+echo 'Hello World' > ./dummy
diff --git a/tests/simple.sh b/tests/simple.sh
index a94b6d1853e0..4f9f6e964acd 100644
--- a/tests/simple.sh
+++ b/tests/simple.sh
@@ -18,7 +18,6 @@ if test "$text" != "Hello World!"; then exit 1; fi
 $nixstore --delete $outPath
 if test -e $outPath/hello; then false; fi
 
-echo 'Hello World' > ./dummy
 outPath="$(NIX_STORE_DIR=/foo $nixinstantiate --readonly-mode hash-check.nix)"
 if test "$outPath" != "/foo/lfy1s6ca46rm5r6w4gg9hc0axiakjcnm-dependencies.drv"; then
     echo "hashDerivationModulo appears broken, got $outPath"