Skip to content

Commit 4e2cf33

Browse files
nashifAndrew Boie
authored andcommitted
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 <[email protected]>
1 parent 5312754 commit 4e2cf33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sanitycheck

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ class TestSuite:
13241324
if tc.platform_whitelist and plat.name not in tc.platform_whitelist:
13251325
continue
13261326

1327-
if tc.tc_filter:
1327+
if tc.tc_filter and (plat in arch.platforms[:platform_limit] or all_plats):
13281328
args = tc.extra_args[:]
13291329
args.extend(["ARCH=" + plat.arch.name,
13301330
"BOARD=" + plat.name, "initconfig"])

0 commit comments

Comments
 (0)