Skip to content

Commit 3fc4825

Browse files
andy-shevshuahkh
authored andcommitted
kunit: Don't fail test suites if one of them is empty
Empty test suite is okay test suite. Don't fail the rest of the test suites if one of them is empty. Fixes: 6ebf586 ("kunit: tool: add Python wrappers for running KUnit tests") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Tested-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 3023d8f commit 3fc4825

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/kunit/kunit_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def parse_test_suite(lines: List[str], expected_suite_index: int) -> TestSuite:
241241
return None
242242
test_suite.name = name
243243
expected_test_case_num = parse_subtest_plan(lines)
244-
if not expected_test_case_num:
244+
if expected_test_case_num is None:
245245
return None
246246
while expected_test_case_num > 0:
247247
test_case = parse_test_case(lines)

0 commit comments

Comments
 (0)