From 173d219872958926cd0f27fc5adbbfc2b53c777c Mon Sep 17 00:00:00 2001 From: "Somsikov, Andrey" Date: Thu, 11 Feb 2021 13:04:38 +0300 Subject: [PATCH] Fix cond comp environment setup source command may not be available in sh. --- tests/lib/proc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/proc_utils.py b/tests/lib/proc_utils.py index ebf99867bfe5bb..97591c3aea0afc 100644 --- a/tests/lib/proc_utils.py +++ b/tests/lib/proc_utils.py @@ -21,7 +21,7 @@ def get_env_from(script): if sys.platform == "win32": cmd = f'"{script}" && set' else: - cmd = f'source "{script}" && env' + cmd = f'"{script}" && env' dump = subprocess.check_output(cmd, shell=True, universal_newlines=True).strip() for line in dump.split("\n"): # split by first '='