Skip to content

Commit

Permalink
tests: Make unusual logging test conditional on fixed daemon version
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Dec 9, 2024
1 parent f3c722c commit c783cd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/functional/logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c783cd2

Please sign in to comment.