From 64a7f3a3f0e21ada920dee3a749590cc227204e7 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Thu, 18 Jan 2024 09:00:45 +0100 Subject: [PATCH] wpt: always return detailed result We want detailed subcase result for successful cases --- src/wpt/run.zig | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/wpt/run.zig b/src/wpt/run.zig index 65d5ee67..ba8c474f 100644 --- a/src/wpt/run.zig +++ b/src/wpt/run.zig @@ -126,13 +126,8 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const return res; } - // If the test failed, return detailed logs intead of the simple status. - if (!std.mem.eql(u8, res.result, "Pass")) { - return try evalJS(js_env, alloc, "report.log", "teststatus"); - } - - // return the final result. - return res; + // return the detailed result. + return try evalJS(js_env, alloc, "report.log", "teststatus"); } fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name: ?[]const u8) !jsruntime.JSResult {