Commit edb23d7b authored by Maciej Perkowski's avatar Maciej Perkowski Committed by Anas Nashif
Browse files

twister: native_posix: Ignor filtering by toolchain for native_posix



In the case of native_posix (and other "host" toolchain based
platforms) Twister shouldn't filter tests by ZEPHYR_TOOLCHAIN_VARIANT.
The PR replaces `- zephyr` with `- host` in native_posix(_64).yaml
and modify the filter in twisterlib.py to not block building
if "host" is under the platform supported toolchains.

Fixes: #38418

Signed-off-by: default avatarMaciej Perkowski <Maciej.Perkowski@nordicsemi.no>
parent fa20ebe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ arch: posix
ram: 65536
flash: 65536
toolchain:
  - zephyr
  - host
  - llvm
supported:
  - eeprom
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ arch: posix
ram: 65536
flash: 65536
toolchain:
  - zephyr
  - host
  - llvm
supported:
  - eeprom
+1 −0
Original line number Diff line number Diff line
@@ -3202,6 +3202,7 @@ class TestSuite(DisablePyTestCollectionMixin):

                if not force_toolchain \
                        and toolchain and (toolchain not in plat.supported_toolchains) \
                        and "host" not in plat.supported_toolchains \
                        and tc.type != 'unit':
                    discards[instance] = discards.get(instance, "Not supported by the toolchain")