mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
tests/functional/check-refs.sh: guard test12 against too old nix daemon
Otherwise without the change the test fails on nix-2.26 as: error: derivation contains an illegal reference specifier 'dev' Note: the error message does not match intended change.
This commit is contained in:
parent
f4def47c89
commit
1e7c7244cf
1 changed files with 5 additions and 3 deletions
|
@ -61,6 +61,8 @@ if ! isTestOnNixOS; then
|
|||
|
||||
fi
|
||||
|
||||
# test12 should fail (syntactically invalid).
|
||||
expectStderr 1 nix-build -vvv -o "$RESULT" check-refs.nix -A test12 >"$TEST_ROOT/test12.stderr"
|
||||
grepQuiet -F "output check for 'lib' contains an illegal reference specifier 'dev', expected store path or output name (one of [lib, out])" < "$TEST_ROOT/test12.stderr"
|
||||
if isDaemonNewer "2.28pre20241225"; then
|
||||
# test12 should fail (syntactically invalid).
|
||||
expectStderr 1 nix-build -vvv -o "$RESULT" check-refs.nix -A test12 >"$TEST_ROOT/test12.stderr"
|
||||
grepQuiet -F "output check for 'lib' contains an illegal reference specifier 'dev', expected store path or output name (one of [lib, out])" < "$TEST_ROOT/test12.stderr"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue