Skip to content

Commit 0defaa8

Browse files
committed
skip api executor if unavailable
1 parent e02f14c commit 0defaa8

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
@@ -207,7 +207,7 @@ def construct_cmd_from_click_api(mode):
207207
# run flow
208208
if executor == "cli":
209209
flow_ret = subprocess.call(run_cmd("run"), env=env)
210-
elif executor == "api" and skip_api_executor is False:
210+
elif executor == "api":
211211
flow_ret = subprocess.call(construct_cmd_from_click_api("run"), env=env)
212212

213213
if flow_ret:
@@ -217,7 +217,7 @@ def construct_cmd_from_click_api(mode):
217217
log("Resuming flow", formatter, context)
218218
if executor == "cli":
219219
flow_ret = subprocess.call(run_cmd("resume"), env=env)
220-
elif executor == "api" and skip_api_executor is False:
220+
elif executor == "api":
221221
flow_ret = subprocess.call(
222222
construct_cmd_from_click_api("resume"), env=env
223223
)
@@ -324,6 +324,8 @@ def run_test_cases(args):
324324
continue
325325

326326
for executor in context["executors"]:
327+
if executor == "api" and skip_api_executor is True:
328+
continue
327329
log(
328330
"running [using %s executor]" % executor,
329331
formatter,

0 commit comments

Comments
 (0)