diff options
author | Naïm Favier <n@monade.li> | 2022-12-06 16:36:42 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-12-06 16:36:42 +0100 |
commit | 08dcd22582d65e73f29df79b3765e76cea8f3314 (patch) | |
tree | 46c23276a1357e0c200cd5b5ec48b07e735063d5 | |
parent | b4b13382f4a5a39cf9c6750c423402373a0de8a1 (diff) |
tests: don't refer to TMPDIR
-rw-r--r-- | tests/check.nix | 2 | ||||
-rw-r--r-- | tests/check.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/check.nix b/tests/check.nix index ed91ff845..ddab8eea9 100644 --- a/tests/check.nix +++ b/tests/check.nix @@ -44,7 +44,7 @@ with import ./config.nix; }; hashmismatch = import <nix/fetchurl.nix> { - url = "file://" + builtins.getEnv "TMPDIR" + "/dummy"; + url = "file://" + builtins.getEnv "TEST_ROOT" + "/dummy"; sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73"; }; diff --git a/tests/check.sh b/tests/check.sh index 495202781..fbd784fc5 100644 --- a/tests/check.sh +++ b/tests/check.sh @@ -91,13 +91,13 @@ nix-build check.nix -A fetchurl --no-out-link --check nix-build check.nix -A fetchurl --no-out-link --repair [[ $(cat $path) != foo ]] -echo 'Hello World' > $TMPDIR/dummy +echo 'Hello World' > $TEST_ROOT/dummy nix-build check.nix -A hashmismatch --no-out-link || status=$? [ "$status" = "102" ] -echo -n > $TMPDIR/dummy +echo -n > $TEST_ROOT/dummy nix-build check.nix -A hashmismatch --no-out-link -echo 'Hello World' > $TMPDIR/dummy +echo 'Hello World' > $TEST_ROOT/dummy nix-build check.nix -A hashmismatch --no-out-link --check || status=$? [ "$status" = "102" ] |