Skip to content

Commit 4f630b0

Browse files
committed
fix test_run_shell_cmd_cache
1 parent e996c51 commit 4f630b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/framework/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ def test_run_shell_cmd_cache(self):
13851385
with self.mocked_stdout_stderr():
13861386
cached_res = RunShellCmdResult(cmd=cmd, output="123456", exit_code=123, stderr=None,
13871387
work_dir='/test_ulimit', out_file='/tmp/foo.out', err_file=None,
1388-
thread_id=None, task_id=None)
1388+
cmd_sh='/tmp/cmd.sh', thread_id=None, task_id=None)
13891389
run_shell_cmd.update_cache({(cmd, None): cached_res})
13901390
res = run_shell_cmd(cmd)
13911391
self.assertEqual(res.cmd, cmd)
@@ -1405,7 +1405,7 @@ def test_run_shell_cmd_cache(self):
14051405
with self.mocked_stdout_stderr():
14061406
cached_res = RunShellCmdResult(cmd=cmd, output="bar", exit_code=123, stderr=None,
14071407
work_dir='/test_cat', out_file='/tmp/cat.out', err_file=None,
1408-
thread_id=None, task_id=None)
1408+
cmd_sh='/tmp/cmd.sh', thread_id=None, task_id=None)
14091409
run_shell_cmd.update_cache({(cmd, 'foo'): cached_res})
14101410
res = run_shell_cmd(cmd, stdin='foo')
14111411
self.assertEqual(res.cmd, cmd)

0 commit comments

Comments
 (0)