For a suite that is ``__backend__``, if no tests will run, then
don't include that suite in the result at all, rather than
keeping them there and having them skip. the skip suites are
producing lots of noise in junit files
Change-Id: If58af412b7d8f542d6e1903ca933745075f5c7d9
(cherry picked from commit
8bb6aaa01bb292ffa7cc8db61d1b6f9c44fb5fc3)
for marker in add_markers:
test_class.add_marker(marker)
- for sub_cls in plugin_base.generate_sub_tests(
- test_class.cls, test_class.module, all_markers
- ):
+ sub_tests = list(
+ plugin_base.generate_sub_tests(
+ test_class.cls, test_class.module, all_markers
+ )
+ )
+ if not sub_tests:
+ rebuilt_items[test_class.cls]
+
+ for sub_cls in sub_tests:
if sub_cls is not test_class.cls:
per_cls_dict = rebuilt_items[test_class.cls]