Skip to content

Commit

Permalink
skip api executor if unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed May 15, 2024
1 parent 18b0822 commit 5b3e042
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/core/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def construct_cmd_from_click_api(mode):
# run flow
if executor == "cli":
flow_ret = subprocess.call(run_cmd("run"), env=env)
elif executor == "api" and skip_api_executor is False:
elif executor == "api":
flow_ret = subprocess.call(construct_cmd_from_click_api("run"), env=env)

if flow_ret:
Expand All @@ -217,7 +217,7 @@ def construct_cmd_from_click_api(mode):
log("Resuming flow", formatter, context)
if executor == "cli":
flow_ret = subprocess.call(run_cmd("resume"), env=env)
elif executor == "api" and skip_api_executor is False:
elif executor == "api":
flow_ret = subprocess.call(
construct_cmd_from_click_api("resume"), env=env
)
Expand Down Expand Up @@ -324,6 +324,8 @@ def run_test_cases(args):
continue

for executor in context["executors"]:
if executor == "api" and skip_api_executor is True:
continue
log(
"running [using %s executor]" % executor,
formatter,
Expand Down

0 comments on commit 5b3e042

Please sign in to comment.