summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2016-12-21 13:05:28 -0500
committerAnas Nashif <nashif@linux.intel.com>2017-01-05 02:05:58 +0000
commit6d4ff2303eb1eb2cb2980e26e2740f626c2e340d (patch)
tree3c544eb13ecdb979f67ab7f95698de37f6df6283 /scripts
parent2382cb8fa3be705cccbbe7f7fe6217dd8fe4c7f6 (diff)
sanitycheck: reduce number of unnecessary configuration builds
When running a reduced set of tests with --platform-limit or using the default of 1 we build the configuration (make initconfig) for all platforms, although we are only interested in a limited set. On my machine this is 100s of build time for configurations we are never going to use. This reduces the number of builds to what we really need and speeds up sanitycheck runtime overall. Might need a few more optimisations. Change-Id: I813fabf1453f19ce7a83b28e4792b5c80616d936 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sanitycheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index c31620d42..6b274d43b 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -1335,7 +1335,7 @@ class TestSuite:
if tc.platform_whitelist and plat.name not in tc.platform_whitelist:
continue
- if tc.tc_filter:
+ if tc.tc_filter and (plat in arch.platforms[:platform_limit] or all_plats or platform_filter):
args = tc.extra_args[:]
args.extend(["ARCH=" + plat.arch.name,
"BOARD=" + plat.name, "initconfig"])