Skip to content

Commit b5054a4

Browse files
committed
skip api executor if unavailable
1 parent 2751088 commit b5054a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/core/run_tests.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def construct_cmd_from_click_api(mode):
195195
# run flow
196196
if executor == "cli":
197197
flow_ret = subprocess.call(run_cmd("run"), env=env)
198-
elif executor == "api" and skip_api_executor is False:
198+
elif executor == "api":
199199
flow_ret = subprocess.call(construct_cmd_from_click_api("run"), env=env)
200200

201201
if flow_ret:
@@ -205,7 +205,7 @@ def construct_cmd_from_click_api(mode):
205205
log("Resuming flow", formatter, context)
206206
if executor == "cli":
207207
flow_ret = subprocess.call(run_cmd("resume"), env=env)
208-
elif executor == "api" and skip_api_executor is False:
208+
elif executor == "api":
209209
flow_ret = subprocess.call(
210210
construct_cmd_from_click_api("resume"), env=env
211211
)
@@ -312,6 +312,8 @@ def run_test_cases(args):
312312
continue
313313

314314
for executor in context["executors"]:
315+
if executor == "api" and skip_api_executor is True:
316+
continue
315317
log(
316318
"running [using %s executor]" % executor,
317319
formatter,

0 commit comments

Comments
 (0)