Build/Test Tools: Fix file prefix handling in performance test results.

This is a follow-up to r56926.

See #59517.

git-svn-id: https://develop.svn.wordpress.org/trunk@56928 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2023-10-13 11:28:16 +00:00
parent 64190e8c3e
commit cadf7128e9

View File

@ -22,7 +22,7 @@ function median( array ) {
*/
function getResultsFilename( fileName ) {
const prefix = process.env.TEST_RESULTS_PREFIX;
const fileNamePrefix = prefix ? `${ prefix.split( '=' )[ 1 ] }-` : '';
const fileNamePrefix = prefix ? `${ prefix }-` : '';
return `${fileNamePrefix + fileName}.results.json`;
}