summaryrefslogtreecommitdiffstatshomepage
path: root/tests/performance/utils.js
diff options
context:
space:
mode:
authorPascal Birchler <swissspidy@git.wordpress.org>2023-10-13 11:28:16 +0000
committerPascal Birchler <swissspidy@git.wordpress.org>2023-10-13 11:28:16 +0000
commitcadf7128e9ccf1aa19de8e6b7a37e095f65f70ea (patch)
treed4880fa8ba65e235d0580948a9640d1b9cfc0a34 /tests/performance/utils.js
parent64190e8c3eb4e72fce95062ae266cbd8390def4a (diff)
downloadwordpress-cadf7128e9ccf1aa19de8e6b7a37e095f65f70ea.tar.gz
wordpress-cadf7128e9ccf1aa19de8e6b7a37e095f65f70ea.zip
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
Diffstat (limited to 'tests/performance/utils.js')
-rw-r--r--tests/performance/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/performance/utils.js b/tests/performance/utils.js
index 9d6502e8e6..f56380e9c2 100644
--- a/tests/performance/utils.js
+++ b/tests/performance/utils.js
@@ -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`;
}