twister: filter out native_sim on ! Linux

native_sim only works and builds on Linux, when running twister on the
Mac, this platform fails to build and reports errors.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2025-02-23 08:38:11 -05:00 committed by Benjamin Cabé
commit 96ab891f3a

View file

@ -933,6 +933,8 @@ class TestPlan:
"Environment ({}) not satisfied".format(", ".join(plat.env)),
Filters.ENVIRONMENT
)
if plat.type == 'native' and sys.platform != 'linux':
instance.add_filter("Native platform requires Linux", Filters.ENVIRONMENT)
if not force_toolchain \
and toolchain and (toolchain not in plat.supported_toolchains):