Skip the testcases that don't support the fork or the config

This commit is contained in:
Hsiao-Wei Wang 2020-08-11 16:19:20 +08:00
parent 3e5cada5de
commit 52ba90d719
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 7 additions and 1 deletions

View File

@ -135,7 +135,13 @@ def run_generator(generator_name, test_providers: Iterable[TestProvider]):
written_part = False
meta = dict()
for (name, out_kind, data) in test_case.case_fn():
output = test_case.case_fn()
# If the output is `None`, that means the testcase doesn't support this fork or this config.
if output is None:
continue
for (name, out_kind, data) in output:
written_part = True
if out_kind == "meta":
meta[name] = data