mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2174 from theotherjimmy/return-from-build
[tools/build_api] Retrun truthy value on success from build_*pull/2162/merge
commit
3a2b752169
|
@ -396,6 +396,7 @@ def build_library(src_paths, build_path, target, toolchain_name,
|
||||||
cur_result["result"] = "OK"
|
cur_result["result"] = "OK"
|
||||||
|
|
||||||
add_result_to_report(report, cur_result)
|
add_result_to_report(report, cur_result)
|
||||||
|
return True
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if report != None:
|
if report != None:
|
||||||
|
@ -540,6 +541,7 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, clean
|
||||||
cur_result["result"] = "OK"
|
cur_result["result"] = "OK"
|
||||||
|
|
||||||
add_result_to_report(report, cur_result)
|
add_result_to_report(report, cur_result)
|
||||||
|
return True
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if report != None:
|
if report != None:
|
||||||
|
|
Loading…
Reference in New Issue