From cadf7128e9ccf1aa19de8e6b7a37e095f65f70ea Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 13 Oct 2023 11:28:16 +0000 Subject: 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 --- tests/performance/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/performance/utils.js') 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`; } -- cgit v1.2.3