From 8678f782bf6536933010e31fdd71df7c7e307e57 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 17 Mar 2026 17:41:54 +0100 Subject: [PATCH] Fix typo for --test parsing --- cli.js | 2 +- tests/run-shell.mjs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index e05211da..cd1dd423 100644 --- a/cli.js +++ b/cli.js @@ -119,7 +119,7 @@ const printHelp = cliParams.delete("help"); const dumpTestList = cliParams.delete("dumpTestList"); if (cliArgs.length) { - let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : [] + let tests = cliParams.has("test") ? cliParams.get("test").split(",") : [] tests = tests.concat(cliArgs); cliParams.set("test", tests.join(",")); } diff --git a/tests/run-shell.mjs b/tests/run-shell.mjs index dedb2cc6..8b061b94 100644 --- a/tests/run-shell.mjs +++ b/tests/run-shell.mjs @@ -81,6 +81,13 @@ const TESTS = [ return runCLITest("Grouped with Details", shell_binary, "SunSpider", "--group-details"); }, }, + { + name: "Test Flag With Positional Args", + tags: ["all", "main", "test-flag"], + run(shell_binary) { + return runCLITest("Test Flag With Positional Args", shell_binary, "--test=proxy-mobx", "proxy"); + }, + }, { name: "Disabled Suite", tags: ["all", "disabled"],