tests: fuel_gauge: fixed filtering

Use platform key to filter out non emulation platforms before running
cmake.

Fixes #71870

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-04-24 08:21:45 -04:00
parent 22a7d2d8fb
commit 571d7b4ca7

View file

@ -3,9 +3,10 @@ tests:
tags:
- drivers
- fuel_gauge
filter: >
dt_compat_enabled("sbs,sbs-gauge-new-api") and
(CONFIG_QEMU_TARGET or CONFIG_BOARD_NATIVE_SIM)
platform_key:
- arch
- simulation
filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
extra_args:
- CONF_FILE="prj.conf;boards/emulated_board.conf"
- DTC_OVERLAY_FILE="boards/emulated_board.overlay"
@ -24,9 +25,10 @@ tests:
tags:
- drivers
- fuel_gauge
filter: >
dt_compat_enabled("sbs,sbs-gauge-new-api") and
(CONFIG_QEMU_TARGET or CONFIG_BOARD_NATIVE_SIM)
platform_key:
- arch
- simulation
filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
platform_allow:
- hifive_unmatched
- qemu_cortex_a53