mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2855 from bridadan/handle-exceptions-better
[Tools] Handling Exceptions better when building testspull/2871/merge
commit
b3522fe9d4
|
@ -2102,14 +2102,14 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
|
||||||
app_config=app_config,
|
app_config=app_config,
|
||||||
build_profile=build_profile)
|
build_profile=build_profile)
|
||||||
|
|
||||||
except Exception, e:
|
except NotSupportedException:
|
||||||
if not isinstance(e, NotSupportedException):
|
pass
|
||||||
result = False
|
except ToolException:
|
||||||
|
result = False
|
||||||
if continue_on_build_fail:
|
if continue_on_build_fail:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
# If a clean build was carried out last time, disable it for the next build.
|
# If a clean build was carried out last time, disable it for the next build.
|
||||||
# Otherwise the previously built test will be deleted.
|
# Otherwise the previously built test will be deleted.
|
||||||
|
|
Loading…
Reference in New Issue