From 52ba90d7195cb3892cf0c9396518495237835d8c Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Tue, 11 Aug 2020 16:19:20 +0800 Subject: [PATCH] Skip the testcases that don't support the fork or the config --- tests/core/gen_helpers/gen_base/gen_runner.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/core/gen_helpers/gen_base/gen_runner.py b/tests/core/gen_helpers/gen_base/gen_runner.py index dbe2b406a..da60567f9 100644 --- a/tests/core/gen_helpers/gen_base/gen_runner.py +++ b/tests/core/gen_helpers/gen_base/gen_runner.py @@ -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