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():