From 6c041e84139fc06110f38d940d6117badcc1fd0a Mon Sep 17 00:00:00 2001 From: Eric Culp Date: Thu, 31 Oct 2019 17:55:43 -0700 Subject: [PATCH] Replace $TMPDIR with $TEST_ROOT in tests/fetchurl.sh $TMPDIR isn't necessarily set and would cause this test to fail. --- tests/fetchurl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh index 7319ced2b..2535651b0 100644 --- a/tests/fetchurl.sh +++ b/tests/fetchurl.sh @@ -35,7 +35,7 @@ clearStore hash=$(nix hash-file --type sha512 --base64 ./fetchurl.sh) hash32=$(nix hash-file --type sha512 --base16 ./fetchurl.sh) -mirror=$TMPDIR/hashed-mirror +mirror=$TEST_ROOT/hashed-mirror rm -rf $mirror mkdir -p $mirror/sha512 ln -s $(pwd)/fetchurl.sh $mirror/sha512/$hash32