mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 20:43:19 +00:00
test_runner.zig: Do not log test name twice
In #10859 I moved the `test_node.end()` call after everything else has been logged. Now the `test_fn.name` is printed by `Progress` itself, making the additional log obsolete.
This commit is contained in:
parent
f5068107cd
commit
9ca3c897ec
@ -70,7 +70,7 @@ pub fn main() void {
|
||||
.blocking => {
|
||||
skip_count += 1;
|
||||
test_node.end();
|
||||
progress.log("{s}... SKIP (async test)\n", .{test_fn.name});
|
||||
progress.log("SKIP (async test)\n", .{});
|
||||
if (!have_tty) std.debug.print("SKIP (async test)\n", .{});
|
||||
continue;
|
||||
},
|
||||
@ -82,13 +82,13 @@ pub fn main() void {
|
||||
} else |err| switch (err) {
|
||||
error.SkipZigTest => {
|
||||
skip_count += 1;
|
||||
progress.log("{s}... SKIP\n", .{test_fn.name});
|
||||
progress.log("SKIP\n", .{});
|
||||
if (!have_tty) std.debug.print("SKIP\n", .{});
|
||||
test_node.end();
|
||||
},
|
||||
else => {
|
||||
fail_count += 1;
|
||||
progress.log("{s}... FAIL ({s})\n", .{ test_fn.name, @errorName(err) });
|
||||
progress.log("FAIL ({s})\n", .{@errorName(err)});
|
||||
if (!have_tty) std.debug.print("FAIL ({s})\n", .{@errorName(err)});
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user