Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 115e8c2

Browse filesBrowse files
panvaaduh95
authored andcommitted
test: ensure WPT report is in out/wpt
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #62637 Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent cb07b91 commit 115e8c2
Copy full SHA for 115e8c2

1 file changed

+4-3Lines changed: 4 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/wpt.js‎

Copy file name to clipboardExpand all lines: test/common/wpt.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +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`;
96+
constructor(testPath) {
97+
this.filename = `report-${testPath.replaceAll('/', '-')}.json`;
98+
this.filepath = path.join(__dirname, `../../out/wpt/${this.filename}`);
9899
/** @type {Map<string, ReportResult>} */
99100
this.results = new Map();
100101
this.time_start = Date.now();
@@ -139,7 +140,7 @@ class WPTReport {
139140
os: getOs(),
140141
};
141142

142-
fs.writeFileSync(`out/wpt/${this.filename}`, JSON.stringify({
143+
fs.writeFileSync(this.filepath, JSON.stringify({
143144
time_start: this.time_start,
144145
time_end: this.time_end,
145146
run_info: this.run_info,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.