| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cb07b91 commit 115e8c2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -93,8 +93,9 @@ class ReportResult { | |||
| 93 | 93 | // Checkout https://github.com/web-platform-tests/wpt.fyi/tree/main/api#results-creation | |
| 94 | 94 | // for more details. | |
| 95 | 95 | 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}`); | ||
| 98 | 99 | /** @type {Map<string, ReportResult>} */ | |
| 99 | 100 | this.results = new Map(); | |
| 100 | 101 | this.time_start = Date.now(); | |
@@ -139,7 +140,7 @@ class WPTReport { | |||
| 139 | 140 | os: getOs(), | |
| 140 | 141 | }; | |
| 141 | 142 | ||
| 142 | - fs.writeFileSync(`out/wpt/${this.filename}`, JSON.stringify({ | ||
| 143 | + fs.writeFileSync(this.filepath, JSON.stringify({ | ||
| 143 | 144 | time_start: this.time_start, | |
| 144 | 145 | time_end: this.time_end, | |
| 145 | 146 | run_info: this.run_info, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments