Skip to content

Commit 42990ac

Browse files
committed
fixup! test: ensure WPT report is in out/wpt
1 parent 98cdd4d commit 42990ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/common/wpt.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ class ReportResult {
9393
// Checkout https://github.com/web-platform-tests/wpt.fyi/tree/main/api#results-creation
9494
// for more details.
9595
class WPTReport {
96-
constructor(path) {
97-
this.filename = `report-${path.replaceAll('/', '-')}.json`;
98-
// Resolve at construction time so cwd changes (e.g. tmpdir cleanup) don't affect the output path.
99-
this.filepath = path.resolve('out', 'wpt', this.filename);
96+
constructor(testPath) {
97+
this.filename = `report-${testPath.replaceAll('/', '-')}.json`;
98+
this.filepath = path.join(__dirname, `../../out/wpt/${this.filename}`);
10099
/** @type {Map<string, ReportResult>} */
101100
this.results = new Map();
102101
this.time_start = Date.now();

0 commit comments

Comments
 (0)