Skip to content

Commit 96ab891

Browse files
nashifkartben
authored andcommitted
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 <[email protected]>
1 parent fa93fe2 commit 96ab891

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/pylib/twister/twisterlib/testplan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,8 @@ def apply_filters(self, **kwargs):
933933
"Environment ({}) not satisfied".format(", ".join(plat.env)),
934934
Filters.ENVIRONMENT
935935
)
936+
if plat.type == 'native' and sys.platform != 'linux':
937+
instance.add_filter("Native platform requires Linux", Filters.ENVIRONMENT)
936938

937939
if not force_toolchain \
938940
and toolchain and (toolchain not in plat.supported_toolchains):

0 commit comments

Comments
 (0)