File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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.
9595class 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 ( ) ;
You can’t perform that action at this time.
0 commit comments