From bfab06bb528b6f00d8b8157ea977fe058d041e98 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 22 Jun 2017 09:22:24 -0400 Subject: [PATCH] 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 --- scripts/sanitycheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 2523888fe2b..0c480bd4fde 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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):