twister: cmake: Add prefiltration based on cmake package helper script
Twister allows filtering based on kconfigs and dts, however the filtration is a part of the cmake stage, i.e. the stage has to pass first and then twister checks if required properties are available. This causes problems, when the full cmake stage is unable to pass. If so, other filtration methods had to be used, e.g. platform_allow. The commit modifies the twister workflow: if a test defines filters based on kconfig/dts first a cmake package helper script is used to extract dt and/or kconfigs and if the conditions are fulfilled it proceeds to a regular cmake stage. If not, test is skipped. Co-authored-by:Daniel DeGrasse <daniel.degrasse@nxp.com> Signed-off-by:
Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
Loading
Please sign in to comment