Skip to content

Commit 6dbd39c

Browse files
committed
adding --continue-on-build-fail option to build_everything.py
1 parent 10936e2 commit 6dbd39c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/build_everything.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
default=None, help="Destination path for a test spec file that can be used by the Greentea automated test tool")
7878

7979
parser.add_option("", "--build-report-junit", dest="build_report_junit", help="Output the build results to an junit xml file")
80+
81+
parser.add_option("--continue-on-build-fail", action="store_true", dest="continue_on_build_fail",
82+
default=False, help="Continue trying to build all tests if a build failure occurs")
8083

8184
options, args = parser.parse_args()
8285

@@ -175,15 +178,16 @@
175178
print "Failed to build library"
176179
print e
177180

178-
if library_build_success:
181+
if options.continue_on_build_fail or library_build_success:
179182
# Build all the tests
180183
test_build_success, test_build = build_tests(all_tests, [build_directory], build_directory, target, target_toolchain,
181184
clean=options.clean,
182185
report=build_report,
183186
properties=build_properties,
184187
macros=options.macros,
185188
verbose=options.verbose,
186-
jobs=options.jobs)
189+
jobs=options.jobs,
190+
continue_on_build_fail=options.continue_on_build_fail)
187191

188192
if not test_build_success:
189193
total_build_success = False
@@ -192,6 +196,7 @@
192196
test_builds.update(test_build)
193197
else:
194198
total_build_success = False
199+
break
195200

196201
# If a path to a test spec is provided, write it to a file
197202
if options.test_spec:

0 commit comments

Comments
 (0)