mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 08:32:10 +02:00
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
This commit is contained in:
parent
e9375e0679
commit
93782b5177
@ -28,14 +28,14 @@ const testSuites = [ 'home-block-theme', 'home-classic-theme' ];
|
||||
// The current commit's results.
|
||||
const testResults = Object.fromEntries(
|
||||
testSuites
|
||||
.filter( ( key ) => fs.existsSync( `${ key }.test.results.json` ) )
|
||||
.filter( ( key ) => fs.existsSync( path.join( __dirname, '/specs/', `${ key }.test.results.json` ) ) )
|
||||
.map( ( key ) => [ key, parseFile( `${ key }.test.results.json` ) ] )
|
||||
);
|
||||
|
||||
// The previous commit's results.
|
||||
const prevResults = Object.fromEntries(
|
||||
testSuites
|
||||
.filter( ( key ) => fs.existsSync( `before-${ key }.test.results.json` ) )
|
||||
.filter( ( key ) => fs.existsSync( path.join( __dirname, '/specs/', `before-${ key }.test.results.json` ) ) )
|
||||
.map( ( key ) => [ key, parseFile( `before-${ key }.test.results.json` ) ] )
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user