Skip to content

Commit 9cabb89

Browse files
nashifmmahadevan108
authored andcommitted
tests: drivers: display: fix filtering
Test was marked build only with filters in each scenario looking for sdl-dc which is only available on native_sim, so cut the chase and use platform_only to narrow things down to native_sim directly instead of building the world to get information we already know. reduces build/run time from 78s to 17s on invocation of twister with default options, saves a ton more when running twister with --all. Signed-off-by: Anas Nashif <[email protected]>
1 parent 21f37c8 commit 9cabb89

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

tests/drivers/display/display_read_write/testcase.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,55 @@ common:
55
tags:
66
- drivers
77
- display
8-
filter: dt_chosen_enabled("zephyr,display")
9-
build_only: true # The CI environment has no display device
8+
harness: display
109
tests:
1110
drivers.display.read_write.sdl.argb8888:
12-
filter: dt_compat_enabled("zephyr,sdl-dc")
11+
platform_allow:
12+
- native_sim
1313
extra_configs:
1414
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888=y
1515
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
1616
drivers.display.read_write.sdl.rgb888:
17-
filter: dt_compat_enabled("zephyr,sdl-dc")
17+
platform_allow:
18+
- native_sim
1819
extra_configs:
1920
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_888=y
2021
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
2122
drivers.display.read_write.sdl.mono01:
22-
filter: dt_compat_enabled("zephyr,sdl-dc")
23+
platform_allow:
24+
- native_sim
2325
extra_configs:
2426
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
2527
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
2628
drivers.display.read_write.sdl.mono10:
27-
filter: dt_compat_enabled("zephyr,sdl-dc")
29+
platform_allow:
30+
- native_sim
2831
extra_configs:
2932
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
3033
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
3134
drivers.display.read_write.sdl.mono01.lsbfirst:
32-
filter: dt_compat_enabled("zephyr,sdl-dc")
35+
platform_allow:
36+
- native_sim
3337
extra_configs:
3438
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
3539
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
3640
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
3741
drivers.display.read_write.sdl.mono10.lsbfirst:
38-
filter: dt_compat_enabled("zephyr,sdl-dc")
42+
platform_allow:
43+
- native_sim
3944
extra_configs:
4045
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
4146
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
4247
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
4348
drivers.display.read_write.sdl.rgb565:
44-
filter: dt_compat_enabled("zephyr,sdl-dc")
49+
platform_allow:
50+
- native_sim
4551
extra_configs:
4652
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_565=y
4753
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
4854
drivers.display.read_write.sdl.bgr565:
49-
filter: dt_compat_enabled("zephyr,sdl-dc")
55+
platform_allow:
56+
- native_sim
5057
extra_configs:
5158
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565=y
5259
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n

0 commit comments

Comments
 (0)