Skip to content

Commit 6aa2bbb

Browse files
committed
[tools/build_api] Retrun truthy value on success from build_*
before: ``` $ python tools/build.py -m NRF51_DK --source . -t GCC_ARM,ARM --build build --silent [SNIP] Completed in: (3.39)s Build skipped: * GCC_ARM::NRF51_DK * ARM::NRF51_DK ``` after: ``` $ python tools/build.py -m NRF51_DK --source . -t GCC_ARM,ARM --build build --silent [SNIP] Completed in: (3.43)s Build successes: * GCC_ARM::NRF51_DK * ARM::NRF51_DK ```
1 parent d0d023a commit 6aa2bbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/build_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
396396
cur_result["result"] = "OK"
397397

398398
add_result_to_report(report, cur_result)
399+
return True
399400

400401
except Exception, e:
401402
if report != None:
@@ -540,6 +541,7 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, clean
540541
cur_result["result"] = "OK"
541542

542543
add_result_to_report(report, cur_result)
544+
return True
543545

544546
except Exception, e:
545547
if report != None:

0 commit comments

Comments
 (0)