twister: Change category of skip due to emulation_platforms

The value of emulation_platforms is a bool corresponding to
--emulation-only CLI option. Therefore, it should be registered
as Filters.CMD_LINE. Without it, twister raises errors when an
integration platform is descoped due to this option.

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
This commit is contained in:
Maciej Perkowski 2023-09-18 16:26:27 +02:00 committed by Anas Nashif
commit 6d64fe67ee

View file

@ -936,7 +936,7 @@ class TestPlan:
elif emulation_platforms:
self.add_instances(instance_list)
for instance in list(filter(lambda inst: not inst.platform.simulation != 'na', instance_list)):
instance.add_filter("Not an emulated platform", Filters.PLATFORM)
instance.add_filter("Not an emulated platform", Filters.CMD_LINE)
else:
self.add_instances(instance_list)