diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-07-07 10:48:47 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-07-07 10:48:47 +0200 |
commit | 02dd6bb610e55a009cd7a4c83639698d3a7acaa2 (patch) | |
tree | af3fc383cc2ac79ad12db34235518ee7e788656f /tests/check.nix | |
parent | 2c853e2a58df5afa6a54cba069d76a7649efc04a (diff) |
tests/check.sh: Fix a race
Fixes this random failure:
error: hash mismatch in fixed-output derivation '/tmp/nix-shell.EUgAVU/nix-test/tests/check/store/sfps3l3c5n7dabpx34kigxnfhmrwk2h6-dummy.drv':
specified: sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
got: sha256-0qhPS4tlCTfsj3PNi+LHSt1akRumTfJ0WO2CKdqASiY=
which happens because multiple tests were writing to ./dummy.
Diffstat (limited to 'tests/check.nix')
-rw-r--r-- | tests/check.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check.nix b/tests/check.nix index bca04fdaf..ec455ae2d 100644 --- a/tests/check.nix +++ b/tests/check.nix @@ -44,7 +44,7 @@ with import ./config.nix; }; hashmismatch = import <nix/fetchurl.nix> { - url = "file://" + toString ./dummy; + url = "file://" + builtins.getEnv "TMPDIR" + "/dummy"; sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73"; }; |