Skip to content

Commit

Permalink
Re-add test compatibility for 3.5 and 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Sep 30, 2024
1 parent a09111a commit 4de523e
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions test/core/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,13 @@ def construct_arg_dicts_from_click_api():
else:
cmd = context["pre_command"]["command"]
called_processes.append(
subprocess.run(cmd, env=env, capture_output=True, check=False)
subprocess.run(
cmd,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False,
)
)
if called_processes[-1].returncode and not context["pre_command"].get(
"ignore_errors", False
Expand All @@ -220,7 +226,11 @@ def construct_arg_dicts_from_click_api():
if executor == "cli":
called_processes.append(
subprocess.run(
run_cmd("run"), env=env, capture_output=True, check=False
run_cmd("run"),
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False,
)
)
elif executor == "api":
Expand Down Expand Up @@ -259,7 +269,8 @@ def construct_arg_dicts_from_click_api():
),
),
env=env,
capture_output=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False,
)
)
Expand Down Expand Up @@ -305,7 +316,13 @@ def construct_arg_dicts_from_click_api():
cmd = [python, "check_flow.py", check["class"], run_id]
cmd.extend(context["top_options"])
called_processes.append(
subprocess.run(cmd, env=env, capture_output=True, check=False)
subprocess.run(
cmd,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False,
)
)
if called_processes[-1].returncode:
log(
Expand Down

0 comments on commit 4de523e

Please sign in to comment.