From 8424fe832ea4c91fd0c1e9841d2e1d2e9739dee7 Mon Sep 17 00:00:00 2001 From: Alexander Galazin Date: Fri, 14 Jul 2017 09:48:05 +0200 Subject: [PATCH] Add option to skip fetch external sources Added option to check_build_sanity.py to skip running fetch_sources.py. Allows to run multiple concurrent invocations of check_build_sanity.py using the same source folder. Components: Framework Change-Id: I6289920860fb20287c405cefc0213c27f326857b --- scripts/check_build_sanity.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/check_build_sanity.py b/scripts/check_build_sanity.py index 88500a4..6f05f33 100644 --- a/scripts/check_build_sanity.py +++ b/scripts/check_build_sanity.py @@ -135,10 +135,6 @@ def runSteps (steps): else: print "Skip: %s" % step.getName() -def runRecipe (steps): - allSteps = PREREQUISITES + steps + POST_CHECKS - runSteps(allSteps) - COMMON_GCC_CFLAGS = ["-Werror"] COMMON_CLANG_CFLAGS = COMMON_GCC_CFLAGS + ["-Wno-error=unused-command-line-argument"] GCC_32BIT_CFLAGS = COMMON_GCC_CFLAGS + ["-m32"] @@ -247,6 +243,11 @@ def parseArgs (): dest="dumpRecipes", action="store_true", help="Print out recipes that have any available actions") + parser.add_argument("--skip-prerequisites", + dest="skipPrerequisites", + action="store_true", + help="Skip external dependency fetch") + return parser.parse_args() if __name__ == "__main__": @@ -265,6 +266,7 @@ if __name__ == "__main__": print "Running %s" % name - runRecipe(steps) + allSteps = (PREREQUISITES if (args.skipPrerequisites == False) else []) + steps + POST_CHECKS + runSteps(allSteps) print "All steps completed successfully" -- 2.7.4