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: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
This commit is contained in:
parent
fa20ebe4a3
commit
edb23d7bd8
3 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ arch: posix
|
|||
ram: 65536
|
||||
flash: 65536
|
||||
toolchain:
|
||||
- zephyr
|
||||
- host
|
||||
- llvm
|
||||
supported:
|
||||
- eeprom
|
||||
|
|
|
@ -5,7 +5,7 @@ arch: posix
|
|||
ram: 65536
|
||||
flash: 65536
|
||||
toolchain:
|
||||
- zephyr
|
||||
- host
|
||||
- llvm
|
||||
supported:
|
||||
- eeprom
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue