Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! test: ensure WPT report is in out/wpt
  • Loading branch information
panva committed Apr 8, 2026
commit 42990acabcd7a03137b0ca1d69b5ed6cc2351bec
7 changes: 3 additions & 4 deletions test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ class ReportResult {
// Checkout https://github.com/web-platform-tests/wpt.fyi/tree/main/api#results-creation
// for more details.
class WPTReport {
constructor(path) {
this.filename = `report-${path.replaceAll('/', '-')}.json`;
// Resolve at construction time so cwd changes (e.g. tmpdir cleanup) don't affect the output path.
this.filepath = path.resolve('out', 'wpt', this.filename);
constructor(testPath) {
this.filename = `report-${testPath.replaceAll('/', '-')}.json`;
this.filepath = path.join(__dirname, `../../out/wpt/${this.filename}`);
/** @type {Map<string, ReportResult>} */
this.results = new Map();
this.time_start = Date.now();
Expand Down
Loading