Skip to content

Commit 0fe46d2

Browse files
authored
Merge pull request #248 from DeterminateSystems/test-builtOutputs-in-json-log
Test that `builtOutputs` is present in the JSON log
2 parents 530c34c + c34f124 commit 0fe46d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/functional/logging.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ if [[ "$NIX_REMOTE" != "daemon" ]]; then
4040
nix build -vv --file dependencies.nix --no-link --json-log-path "$TEST_ROOT/log.json" 2>&1 | grepQuiet 'building.*dependencies-top.drv'
4141
jq < "$TEST_ROOT/log.json"
4242
grep '{"action":"start","fields":\[".*-dependencies-top.drv","",1,1\],"id":.*,"level":3,"parent":0' "$TEST_ROOT/log.json" >&2
43+
grep -E '{"action":"result","id":[^,]+,"payload":{"builtOutputs":{"out":{"path":"[^-]+-dependencies-top"' "$TEST_ROOT/log.json" >&2
4344
(( $(grep -c '{"action":"msg","level":5,"msg":"executing builder .*"}' "$TEST_ROOT/log.json" ) == 5 ))
4445
fi

0 commit comments

Comments
 (0)