From cf21f5f10bfb9430361289eef674a346cc0a19a1 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 22 Jun 2017 06:48:34 -0400 Subject: [PATCH] sanitycheck: enhance toolchain filtering Do not run filters on platforms not supported by toolchain. Signed-off-by: Anas Nashif --- scripts/sanitycheck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 7385dd7fed8..2523888fe2b 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -1364,7 +1364,8 @@ class TestSuite: if tc.platform_whitelist and plat.name not in tc.platform_whitelist: continue - if tc.tc_filter and (plat.default or all_plats or platform_filter): + if (tc.tc_filter and (plat.default or all_plats or platform_filter) and + toolchain in plat.supported_toolchains): args = tc.extra_args[:] args.extend(["ARCH=" + plat.arch, "BOARD=" + plat.name, "config-sanitycheck"])