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: I53d6bacf66045dde7baabbaa40b4fbfc4a01782a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
5312754988
commit
4e2cf33d9d
|
@ -1324,7 +1324,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):
|
||||
args = tc.extra_args[:]
|
||||
args.extend(["ARCH=" + plat.arch.name,
|
||||
"BOARD=" + plat.name, "initconfig"])
|
||||
|
|
Loading…
Reference in New Issue