Lightpanda: the headless browser designed for AI and automation
test: count a shard that crashes after its report as crashed
Adrià Arrufatd2cb0b364ba9
diff --git a/src/test_runner.zig b/src/test_runner.zigindex c7d79ed78..89f97acaf 100644--- a/src/test_runner.zig+++ b/src/test_runner.zig@@ -381,6 +381,11 @@ fn runShards(io: Io, arena: Allocator, environ_map: *const std.process.Environ.Mcontinue;};const report = try std.json.parseFromSliceLeaky(Report, arena, data, .{});+ // the report is written before exit, so a crash on the way out only shows here+ if (term.success() != (report.fail == 0)) {+ Printer.status(.fail, "\nshard {d}/{d} reported {d} failures but ended with {any}\n", .{ i, jobs, report.fail, term });+ crashed = true;+ }total.pass += report.pass;total.fail += report.fail;total.skip += report.skip;