twister: testplan: fix robot filter when there is no simulator

#79174 incorectly interpreted the condition. If no simulator is found
if cannot be "renode" and therefore robot should be considered unsupported.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
This commit is contained in:
Wilfried Chauveau 2024-11-26 13:37:02 +00:00 committed by Fabio Baltieri
commit 468ce19e9c

View file

@ -947,7 +947,7 @@ class TestPlan:
if ts.harness:
sim = plat.simulator_by_name(self.options.sim_name)
if ts.harness == 'robot' and sim and sim.name != 'renode':
if ts.harness == 'robot' and not (sim and sim.name == 'renode'):
instance.add_filter("No robot support for the selected platform", Filters.SKIP)
if ts.depends_on: