twister: report: remove defunct and old option

--report-excluded has not been working for years, nobody has noticed.

Fixes #64644

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-11-02 19:34:28 +00:00 committed by Carles Cufí
commit 85dd423468
3 changed files with 0 additions and 22 deletions

View file

@ -550,12 +550,6 @@ structure in the main Zephyr tree: boards/<arch>/<board_name>/""")
default=True,
help="deprecated, left for compatibility")
parser.add_argument("--report-excluded",
action="store_true",
help="""List all tests that are never run based on current scope and
coverage. If you are looking for accurate results, run this with
--all, but this will take a while...""")
parser.add_argument(
"--report-name",
help="""Create a report with a custom name.

View file

@ -385,18 +385,6 @@ class TestPlan:
print("{} total.".format(cnt))
def report_excluded_tests(self):
all_tests = self.get_all_tests()
to_be_run = set()
for _, p in self.instances.items():
to_be_run.update(p.testsuite.testcases)
if all_tests - to_be_run:
print("Tests that never build or run:")
for not_run in all_tests - to_be_run:
print("- {}".format(not_run))
def config(self):
logger.info("coverage platform: {}".format(self.coverage_platform))

View file

@ -151,10 +151,6 @@ def main(options):
)
)
if options.report_excluded:
tplan.report_excluded_tests()
return 0
report = Reporting(tplan, env)
plan_file = os.path.join(options.outdir, "testplan.json")
if not os.path.exists(plan_file):