twister: fix initial stats about discards

Fix discard stats in the summary.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-03-26 14:07:01 -04:00
commit 61f11536f9

View file

@ -1232,9 +1232,6 @@ def main():
tplan.json_report(options.save_tests) tplan.json_report(options.save_tests)
return return
logger.info("%d test scenarios (%d configurations) selected, %d configurations discarded due to filters." %
(len(tplan.testsuites), len(tplan.instances), len(discards)))
if options.device_testing and not options.build_only: if options.device_testing and not options.build_only:
print("\nDevice testing on:") print("\nDevice testing on:")
hwm.dump(filtered=tplan.selected_platforms) hwm.dump(filtered=tplan.selected_platforms)
@ -1260,6 +1257,8 @@ def main():
done_queue = manager.LifoQueue() done_queue = manager.LifoQueue()
tplan.update_counting(results) tplan.update_counting(results)
logger.info("%d test scenarios (%d configurations) selected, %d configurations discarded due to filters." %
(len(tplan.testsuites), len(tplan.instances), results.skipped_configs))
tplan.start_time = start_time tplan.start_time = start_time
while True: while True: