sanitycheck: fix supported/depends_on usage

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-30 10:40:09 -04:00 committed by Anas Nashif
commit 25a8b88588

View file

@ -1363,7 +1363,7 @@ class TestSuite:
if set(plat.ignore_tags) & tc.tags: if set(plat.ignore_tags) & tc.tags:
continue continue
if not tc.depends_on.issubset(set(plat.supported)): if tc.depends_on and not tc.depends_on.intersection(set(plat.supported)):
continue continue
if plat.flash < tc.min_flash: if plat.flash < tc.min_flash:
@ -1485,7 +1485,7 @@ class TestSuite:
discards[instance] = "Not enough RAM" discards[instance] = "Not enough RAM"
continue continue
if not tc.depends_on.issubset(set(plat.supported)): if tc.depends_on and not tc.depends_on.intersection(set(plat.supported)):
discards[instance] = "No hardware support" discards[instance] = "No hardware support"
continue continue