sanitycheck: fix platform filtering

The build_on_all tag in synchronisation sample was resetting the
supplied arguemnt for filtering platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-22 09:22:24 -04:00 committed by Anas Nashif
parent 3afb47887f
commit bfab06bb52

View file

@ -1316,7 +1316,7 @@ class TestSuite:
if (arch_name == "unit") != (tc.type == "unit"):
continue
if tc.build_on_all:
if tc.build_on_all and not platform_filter:
platform_filter = []
if tc.skip:
@ -1414,7 +1414,7 @@ class TestSuite:
discards[instance] = "Skip filter"
continue
if tc.build_on_all:
if tc.build_on_all and not platform_filter:
platform_filter = []
if tag_filter and not tc.tags.intersection(tag_filter):