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 {...@@ -31,8 +31,9 @@ pub fn main() anyerror!void {
31 }31 }
32 }32 }
33 root_node.end();33 root_node.end();
34 if (ok_count != test_fn_list.len) {34 if (ok_count == test_fn_list.len) {
35 progress.log("{} passed; {} skipped.\n", ok_count, skip_count);35 std.debug.warn("All tests passed.\n");
36 if (progress.terminal == null) std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count);36 } else {
37 std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count);
37 }38 }
38}39}
test/cli.zig+1-1
...@@ -87,7 +87,7 @@ fn exec(cwd: []const u8, argv: []const []const u8) !ChildProcess.ExecResult {...@@ -87,7 +87,7 @@ fn exec(cwd: []const u8, argv: []const []const u8) !ChildProcess.ExecResult {
87fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {87fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {
88 _ = try exec(dir_path, [_][]const u8{ zig_exe, "init-lib" });88 _ = try exec(dir_path, [_][]const u8{ zig_exe, "init-lib" });
89 const test_result = try exec(dir_path, [_][]const u8{ zig_exe, "build", "test" });89 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"));
91}91}
9292
93fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {93fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {