Skip to content

Commit 8678f78

Browse files
committed
Fix typo for --test parsing
1 parent de88e36 commit 8678f78

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const printHelp = cliParams.delete("help");
119119
const dumpTestList = cliParams.delete("dumpTestList");
120120

121121
if (cliArgs.length) {
122-
let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : []
122+
let tests = cliParams.has("test") ? cliParams.get("test").split(",") : []
123123
tests = tests.concat(cliArgs);
124124
cliParams.set("test", tests.join(","));
125125
}

tests/run-shell.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ const TESTS = [
8181
return runCLITest("Grouped with Details", shell_binary, "SunSpider", "--group-details");
8282
},
8383
},
84+
{
85+
name: "Test Flag With Positional Args",
86+
tags: ["all", "main", "test-flag"],
87+
run(shell_binary) {
88+
return runCLITest("Test Flag With Positional Args", shell_binary, "--test=proxy-mobx", "proxy");
89+
},
90+
},
8491
{
8592
name: "Disabled Suite",
8693
tags: ["all", "disabled"],

0 commit comments

Comments
 (0)