aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Culp <eculperic@gmail.com>2019-10-31 17:55:43 -0700
committerEric Culp <eculperic@gmail.com>2019-11-08 12:08:10 -0800
commit6c041e84139fc06110f38d940d6117badcc1fd0a (patch)
treeed7640043698b91a2fd116dbb017d6f7ea109b2f
parent48f0a76372d5e5be86f6522c760ae1f6c12dbd65 (diff)
Replace $TMPDIR with $TEST_ROOT in tests/fetchurl.sh
$TMPDIR isn't necessarily set and would cause this test to fail.
-rw-r--r--tests/fetchurl.sh2
1 files changed, 1 insertions, 1 deletions
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