sanitycheck: fix depends_on when multiple dependencies
If the depends_on has more than one item we need to match all of those dependencies in the supported list. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
5f9cf752f4
commit
5141d526b3
1 changed files with 9 additions and 5 deletions
|
@ -1363,7 +1363,9 @@ class TestSuite:
|
|||
if set(plat.ignore_tags) & tc.tags:
|
||||
continue
|
||||
|
||||
if tc.depends_on and not tc.depends_on.intersection(set(plat.supported)):
|
||||
if tc.depends_on:
|
||||
dep_intersection = tc.depends_on.intersection(set(plat.supported))
|
||||
if dep_intersection != set(tc.depends_on):
|
||||
continue
|
||||
|
||||
if plat.flash < tc.min_flash:
|
||||
|
@ -1485,7 +1487,9 @@ class TestSuite:
|
|||
discards[instance] = "Not enough RAM"
|
||||
continue
|
||||
|
||||
if tc.depends_on and not tc.depends_on.intersection(set(plat.supported)):
|
||||
if tc.depends_on:
|
||||
dep_intersection = tc.depends_on.intersection(set(plat.supported))
|
||||
if dep_intersection != set(tc.depends_on):
|
||||
discards[instance] = "No hardware support"
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue