From 6575608a9bf48c139c93125760b3f095da738e59 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Sun, 3 Nov 2024 00:35:51 -0500 Subject: [PATCH] try setting cwd --- st2common/tests/integration/test_util_green.py | 1 + 1 file changed, 1 insertion(+) diff --git a/st2common/tests/integration/test_util_green.py b/st2common/tests/integration/test_util_green.py index cb5cfa2c0c..a8cd5021b9 100644 --- a/st2common/tests/integration/test_util_green.py +++ b/st2common/tests/integration/test_util_green.py @@ -153,6 +153,7 @@ def mock_read_stderr(process_stderr, stderr_buffer): exit_code, stdout, stderr, timed_out = run_command( cmd=[script_path], + cwd=os.getcwd(), preexec_func=os.setsid, timeout=3, read_stdout_func=mock_read_stdout,