Skip to content

Commit bdd484a

Browse files
aduh95marco-ippolito
authored andcommitted
tools: improve output for unexpected passes in WTP tests
PR-URL: #62587 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b273748 commit bdd484a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/common/wpt.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,13 +791,14 @@ class WPTRunner {
791791
}
792792

793793
// Full check: every expected to fail test is present
794-
if (specs.failedTests.some((expectedToFail) => {
794+
const _unexpectedPasses = specs.failedTests.filter((expectedToFail) => {
795795
if (specs.flakyTests.includes(expectedToFail)) {
796796
return false;
797797
}
798798
return this.results[key]?.fail?.expected?.includes(expectedToFail) !== true;
799-
})) {
800-
unexpectedPasses.push(key);
799+
});
800+
if (_unexpectedPasses.length) {
801+
unexpectedPasses.push(..._unexpectedPasses.map((name) => `${key}:${name}`));
801802
continue;
802803
}
803804
}

0 commit comments

Comments
 (0)