twister: report: remove dead code

Remove dead code for listing tests. This is covered already for the case
of --list-tests.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-11-02 18:21:41 +00:00 committed by Carles Cufí
commit 32f7570bb4
2 changed files with 0 additions and 22 deletions

View file

@ -397,24 +397,6 @@ class TestPlan:
for not_run in all_tests - to_be_run:
print("- {}".format(not_run))
def report_platform_tests(self, platforms=[]):
if len(platforms) > 1:
raise TwisterRuntimeError("When exporting tests, only one platform "
"should be specified.")
for p in platforms:
inst = self.get_platform_instances(p)
count = 0
for i in inst.values():
for c in i.testsuite.cases:
print(f"- {c}")
count += 1
print(f"Tests found: {count}")
def get_platform_instances(self, platform):
filtered_dict = {k:v for k,v in self.instances.items() if k.startswith(platform + os.sep)}
return filtered_dict
def config(self):
logger.info("coverage platform: {}".format(self.coverage_platform))

View file

@ -131,10 +131,6 @@ def main(options):
logger.error(f"{e}")
return 1
if options.list_tests and options.platform:
tplan.report_platform_tests(options.platform)
return 0
if VERBOSE > 1:
# if we are using command line platform filter, no need to list every
# other platform as excluded, we know that already.