From af3db853fa273b44ccffbbd62357a0451ecb6725 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Oct 2016 15:17:39 +0200 Subject: Handle $TMPDIR ending with a slash This caused the gc test to fail on Darwin. --- tests/simple.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/simple.sh') diff --git a/tests/simple.sh b/tests/simple.sh index 8f9d782a6c81..37631b648c67 100644 --- a/tests/simple.sh +++ b/tests/simple.sh @@ -18,7 +18,7 @@ if test "$text" != "Hello World!"; then exit 1; fi nix-store --delete $outPath if test -e $outPath/hello; then false; fi -outPath="$(NIX_REMOTE=local?store=/foo\&real=$TMPDIR/real-store nix-instantiate --readonly-mode hash-check.nix)" +outPath="$(NIX_REMOTE=local?store=/foo\&real=$TEST_ROOT/real-store nix-instantiate --readonly-mode hash-check.nix)" if test "$outPath" != "/foo/lfy1s6ca46rm5r6w4gg9hc0axiakjcnm-dependencies.drv"; then echo "hashDerivationModulo appears broken, got $outPath" exit 1 -- cgit 1.4.1