Skip to content

Commit a8fa801

Browse files
committed
test: < R2021a compatible
1 parent cbc105c commit a8fa801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/TestSys.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ function test_env_run(tc)
4040
if ispc
4141
% in ComSpec, echo is a special shell cmd like "dir" -- also doesn't
4242
% work in python subprocess.run
43-
cmd = ["pwsh", "-c" "(Get-ChildItem Env:" + names(i) + ").Value"];
43+
cmd = ["pwsh", "-c", "(Get-ChildItem Env:" + names(i) + ").Value"];
4444
else
4545
cmd = ["sh", "-c", "echo $" + names(i)];
4646
end
4747

48-
[ret, out] = stdlib.subprocess_run(cmd, env=env);
48+
[ret, out] = stdlib.subprocess_run(cmd, "env", env);
4949
tc.verifyEqual(ret, 0)
5050
tc.verifySubstring(out, vals(i))
5151
end

0 commit comments

Comments
 (0)