Skip to content

Commit 9630c8d

Browse files
committed
fix use of RunShellCmdResult in systemtools tests
1 parent 4f630b0 commit 9630c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/framework/systemtools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def mocked_run_shell_cmd(cmd, **kwargs):
341341
}
342342
if cmd in known_cmds:
343343
return RunShellCmdResult(cmd=cmd, exit_code=0, output=known_cmds[cmd], stderr=None, work_dir=os.getcwd(),
344-
out_file=None, err_file=None, thread_id=None, task_id=None)
344+
out_file=None, err_file=None, cmd_sh=None, thread_id=None, task_id=None)
345345
else:
346346
return run_shell_cmd(cmd, **kwargs)
347347

@@ -774,7 +774,7 @@ def test_gcc_version_darwin(self):
774774
out = "Apple LLVM version 7.0.0 (clang-700.1.76)"
775775
cwd = os.getcwd()
776776
mocked_run_res = RunShellCmdResult(cmd="gcc --version", exit_code=0, output=out, stderr=None, work_dir=cwd,
777-
out_file=None, err_file=None, thread_id=None, task_id=None)
777+
out_file=None, err_file=None, cmd_sh=None, thread_id=None, task_id=None)
778778
st.run_shell_cmd = lambda *args, **kwargs: mocked_run_res
779779
self.assertEqual(get_gcc_version(), None)
780780

0 commit comments

Comments
 (0)