Skip to content

Commit 468ce19

Browse files
ithinuelfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent df79f10 commit 468ce19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib/testplan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def apply_filters(self, **kwargs):
947947

948948
if ts.harness:
949949
sim = plat.simulator_by_name(self.options.sim_name)
950-
if ts.harness == 'robot' and sim and sim.name != 'renode':
950+
if ts.harness == 'robot' and not (sim and sim.name == 'renode'):
951951
instance.add_filter("No robot support for the selected platform", Filters.SKIP)
952952

953953
if ts.depends_on:

0 commit comments

Comments
 (0)