authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 22:20:45-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 22:21:18-04:00
log064377be9aaf409bf483f512354ef22f656bf213
tree4cdaf2fe444083c465c2b81e3a8b780c9bdd2ebe
parentfc6f84f3f08aca0d4e2352091cc2db2ca5779c7d
signaturelock-open Commit is signed but in an unrecognized format.

test runner: restore previous behavior of printing all tests passed


2 files changed, 5 insertions(+), 4 deletions(-)

lib/std/special/test_runner.zig+4-3
......@@ -31,8 +31,9 @@ pub fn main() anyerror!void {
3131 }
3232 }
3333 root_node.end();
34 if (ok_count != test_fn_list.len) {
35 progress.log("{} passed; {} skipped.\n", ok_count, skip_count);
36 if (progress.terminal == null) std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count);
34 if (ok_count == test_fn_list.len) {
35 std.debug.warn("All tests passed.\n");
36 } else {
37 std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count);
3738 }
3839}
test/cli.zig+1-1
......@@ -87,7 +87,7 @@ fn exec(cwd: []const u8, argv: []const []const u8) !ChildProcess.ExecResult {
8787fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {
8888 _ = try exec(dir_path, [_][]const u8{ zig_exe, "init-lib" });
8989 const test_result = try exec(dir_path, [_][]const u8{ zig_exe, "build", "test" });
90 testing.expect(std.mem.eql(u8, test_result.stderr, ""));
90 testing.expect(std.mem.endsWith(u8, test_result.stderr, "All tests passed.\n"));
9191}
9292
9393fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {