Revert "tests/check.sh: Fix a race"

This reverts commit 0776aa11c9 because
it's causing a test failure: https://hydra.nixos.org/build/247889890
This commit is contained in:
Eelco Dolstra 2024-03-07 14:27:23 +01:00
parent b4d5aaca60
commit 99f14d4b34
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ with import ./config.nix;
};
hashmismatch = import <nix/fetchurl.nix> {
url = "file://" + builtins.getEnv "TMPDIR" + "/dummy";
url = "file://" + toString ./dummy;
sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
};

View File

@ -34,9 +34,9 @@ nix-build check.nix -A fetchurl --no-out-link --repair --hashed-mirrors ''
nix-build check.nix -A hashmismatch --no-out-link --hashed-mirrors '' || status=$?
[ "$status" = "102" ]
echo -n > $TMPDIR/dummy
echo -n > ./dummy
nix-build check.nix -A hashmismatch --no-out-link --hashed-mirrors ''
echo 'Hello World' > $TMPDIR/dummy
echo 'Hello World' > ./dummy
nix-build check.nix -A hashmismatch --no-out-link --check --hashed-mirrors '' || status=$?
[ "$status" = "102" ]