1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

tests: Make unusual logging test conditional on fixed daemon version

This commit is contained in:
Robert Hensing 2024-12-09 17:29:45 +01:00
parent f3c722cab2
commit c783cd22ac

View file

@ -29,5 +29,7 @@ test -d "$outp"
nix log "$outp"
# Build works despite ill-formed structured build log entries.
expectStderr 0 nix build -f ./logging/unusual-logging.nix --no-link | grepQuiet 'warning: Unable to handle a JSON message from the derivation builder:'
if isDaemonNewer "2.26"; then
# Build works despite ill-formed structured build log entries.
expectStderr 0 nix build -f ./logging/unusual-logging.nix --no-link | grepQuiet 'warning: Unable to handle a JSON message from the derivation builder:'
fi