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,
|
||||
build_profile=build_profile)
|
||||
|
||||
except Exception, e:
|
||||
if not isinstance(e, NotSupportedException):
|
||||
result = False
|
||||
|
||||
if continue_on_build_fail:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
except NotSupportedException:
|
||||
pass
|
||||
except ToolException:
|
||||
result = False
|
||||
if continue_on_build_fail:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
||||
# If a clean build was carried out last time, disable it for the next build.
|
||||
# Otherwise the previously built test will be deleted.
|
||||
|
|
Loading…
Reference in New Issue