sanitycheck: fix --sub-test option

This option was not working, make it work again using the new function
for managing test inventory.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-11-18 10:22:56 -08:00
commit d11fd78591

View file

@ -3808,6 +3808,11 @@ def main():
return
if options.sub_test:
for st in options.sub_test:
subtests = suite.get_testcase(st)
for sti in subtests:
run_individual_tests.append(sti.name)
if run_individual_tests:
info("Running the following tests:")
for test in run_individual_tests: