未验证 提交 2bdf376f 编写于 作者: Z Zoltan Varga 提交者: GitHub

[mono][wasm] Allow setting env variables with '=' characters in the test runner. (#56802)

上级 13a2b6de
......@@ -168,9 +168,9 @@ while (args !== undefined && args.length > 0) {
} else if (args [0].startsWith ("--setenv=")) {
var arg = args [0].substring ("--setenv=".length);
var parts = arg.split ('=');
if (parts.length != 2)
if (parts.length < 2)
fail_exec ("Error: malformed argument: '" + args [0]);
setenv [parts [0]] = parts [1];
setenv [parts [0]] = arg.substring (parts [0].length + 1);
args = args.slice (1);
} else if (args [0].startsWith ("--runtime-arg=")) {
var arg = args [0].substring ("--runtime-arg=".length);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册