samples: drivers: display: consolidate testcase.yaml #80076
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Consolidate the testcase.yaml definition for the display sample where possible to use a single testcase for all shields. This won't work for all testcases, but helps avoid the pattern where a new testcase using "platform-allow" is added for every shield/board combination that needs to be run with this sample.
With the merge of #79263, we can now define a
sample.display.shieldthat can capture cases where a board simply needs to build with an attached shield.This has the advantage of simplifying the display sample testcase definition. However, it reduces coverage for some shields (such as
adafruit_2_8_tft_touch_v2) which were previously built on all boards supportingarduino_spi. It also reduces coverage for platforms like thenrf52840dk/nrf52840, that were being built for multiple displays previously.Not sure if the simplification here is worth those disadvantages, but wanted to put this out to see what others thoughts were.