Skip to content

Commit 58f39ef

Browse files
committed
relax error pattern used in test_run_shell_cmd_delete_cwd so test also works on macOS
1 parent 966fba0 commit 58f39ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ def test_run_shell_cmd_delete_cwd(self):
20872087
f"rm -rf {workdir} && echo 'Working directory removed.'"
20882088
)
20892089

2090-
error_pattern = rf"Failed to return to {workdir} after executing command"
2090+
error_pattern = rf"Failed to return to .*/{os.path.basename(self.test_prefix)}/workdir after executing command"
20912091

20922092
mkdir(workdir, parents=True)
20932093
with self.mocked_stdout_stderr():

0 commit comments

Comments
 (0)