Skip to content

Commit 93782b5

Browse files
committed
Build/Test Tools: Fix path check when comparing performance test results.
This is a follow-up to r56926, r56927, r56928. See #59517. git-svn-id: https://develop.svn.wordpress.org/trunk@56930 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e9375e0 commit 93782b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/performance/compare-results.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ const testSuites = [ 'home-block-theme', 'home-classic-theme' ];
2828
// The current commit's results.
2929
const testResults = Object.fromEntries(
3030
testSuites
31-
.filter( ( key ) => fs.existsSync( `${ key }.test.results.json` ) )
31+
.filter( ( key ) => fs.existsSync( path.join( __dirname, '/specs/', `${ key }.test.results.json` ) ) )
3232
.map( ( key ) => [ key, parseFile( `${ key }.test.results.json` ) ] )
3333
);
3434

3535
// The previous commit's results.
3636
const prevResults = Object.fromEntries(
3737
testSuites
38-
.filter( ( key ) => fs.existsSync( `before-${ key }.test.results.json` ) )
38+
.filter( ( key ) => fs.existsSync( path.join( __dirname, '/specs/', `before-${ key }.test.results.json` ) ) )
3939
.map( ( key ) => [ key, parseFile( `before-${ key }.test.results.json` ) ] )
4040
);
4141

0 commit comments

Comments
 (0)