From 58f39ef468b052b7c36a4d3123d53146d66e642b Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Mon, 23 Sep 2024 18:05:19 +0200 Subject: [PATCH] relax error pattern used in test_run_shell_cmd_delete_cwd so test also works on macOS --- test/framework/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/run.py b/test/framework/run.py index b2abd77b73..e26373f6e6 100644 --- a/test/framework/run.py +++ b/test/framework/run.py @@ -2087,7 +2087,7 @@ def test_run_shell_cmd_delete_cwd(self): f"rm -rf {workdir} && echo 'Working directory removed.'" ) - error_pattern = rf"Failed to return to {workdir} after executing command" + error_pattern = rf"Failed to return to .*/{os.path.basename(self.test_prefix)}/workdir after executing command" mkdir(workdir, parents=True) with self.mocked_stdout_stderr():