Make WordPress Core

Changeset 56928


Ignore:
Timestamp:
10/13/2023 11:28:16 AM (13 months ago)
Author:
swissspidy
Message:

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

This is a follow-up to r56926.

See #59517.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/performance/utils.js

    r56926 r56928  
    2323function getResultsFilename( fileName ) {
    2424    const prefix = process.env.TEST_RESULTS_PREFIX;
    25     const fileNamePrefix = prefix ? `${ prefix.split( '=' )[ 1 ] }-` : '';
     25    const fileNamePrefix = prefix ? `${ prefix }-` : '';
    2626    return `${fileNamePrefix + fileName}.results.json`;
    2727}
Note: See TracChangeset for help on using the changeset viewer.