mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
wpt: always return detailed result
We want detailed subcase result for successful cases
This commit is contained in:
@@ -126,13 +126,8 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the test failed, return detailed logs intead of the simple status.
|
// return the detailed result.
|
||||||
if (!std.mem.eql(u8, res.result, "Pass")) {
|
|
||||||
return try evalJS(js_env, alloc, "report.log", "teststatus");
|
return try evalJS(js_env, alloc, "report.log", "teststatus");
|
||||||
}
|
|
||||||
|
|
||||||
// return the final result.
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name: ?[]const u8) !jsruntime.JSResult {
|
fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name: ?[]const u8) !jsruntime.JSResult {
|
||||||
|
|||||||
Reference in New Issue
Block a user