You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
twister: remove duplicated code. Simplify logic for test "runnability".
There is no point in executing check_runnable() twice: when loading
test data from yaml and when filters are applied during test plan
creation. The check is left only in the latter case.
"tfilter" variable is removed since the same logic can be preserved
without it by directly using the "runnable" one.
Checks for harness and fixtures are encapsulated as individual methods.
Now checking fixtures both from cli and hwmap happens in a single
place. The check for runnability is tangled with apply_filter() method.
This commit makes the apply_filter() to be executed for all twisters
workflows to improve consitency of the results. Before, e.g. the
filters were not applied when --test-only was used. This would cause
errors if tests are first build with --build-only on one setup and
then ported to another setup with different configuration, where some
requirements (e.g. fixture) are not met.
The changes are followed with an update to twister unit tests to
reflect the modifications.
Signed-off-by: Maciej Perkowski <[email protected]>
0 commit comments