diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-10-15 19:28:17 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-10-26 22:21:15 +0300 |
commit | 3fc48259d5250f7a3ee021ad0492b604c428c564 (patch) | |
tree | 6e6c1774b248b4cc0804dd6f2482541551c80908 /tools/testing/kunit/kunit_parser.py | |
parent | 3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033 (diff) | |
download | linux-3fc48259d5250f7a3ee021ad0492b604c428c564.tar.xz |
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: 6ebf5866f2e8 ("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>
Diffstat (limited to 'tools/testing/kunit/kunit_parser.py')
-rw-r--r-- | tools/testing/kunit/kunit_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/kunit/kunit_parser.py b/tools/testing/kunit/kunit_parser.py index 744ee9cb0073..84a1af2581f5 100644 --- a/tools/testing/kunit/kunit_parser.py +++ b/tools/testing/kunit/kunit_parser.py @@ -241,7 +241,7 @@ def parse_test_suite(lines: List[str], expected_suite_index: int) -> TestSuite: return None test_suite.name = name expected_test_case_num = parse_subtest_plan(lines) - if not expected_test_case_num: + if expected_test_case_num is None: return None while expected_test_case_num > 0: test_case = parse_test_case(lines) |