From 9ac70230a14cfd1246f19b5506bb3de27b18bc79 Mon Sep 17 00:00:00 2001 From: bridiver Date: Wed, 21 Apr 2021 12:53:50 -0700 Subject: [PATCH] don't erase the rest of the array when splicing command line options --- build/commands/lib/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/commands/lib/test.js b/build/commands/lib/test.js index 6cdf5db1c00d..1ad43da1a33d 100644 --- a/build/commands/lib/test.js +++ b/build/commands/lib/test.js @@ -79,7 +79,7 @@ const test = (passthroughArgs, suite, buildConfig = config.defaultBuildConfig, o // Run the tests getTestsToRun(config, suite).forEach((testSuite) => { if (options.output) { - braveArgs.splice(braveArgs.indexOf('--gtest_output=xml:' + options.output, 1)) + braveArgs.splice(braveArgs.indexOf('--gtest_output=xml:' + options.output), 1) braveArgs.push(`--gtest_output=xml:${testSuite}.xml`) } if (config.targetOS === 'android') {