Skip to content

Commit

Permalink
Fix cond comp environment setup (#4290)
Browse files Browse the repository at this point in the history
source command may not be available in sh.
  • Loading branch information
Andrey Somsikov authored Feb 11, 2021
1 parent 3eb0b5c commit 9d57d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/proc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '='
Expand Down

0 comments on commit 9d57d4f

Please sign in to comment.