Merge pull request #2855 from bridadan/handle-exceptions-better

[Tools] Handling Exceptions better when building tests
pull/2871/merge
Sam Grove 2016-09-30 15:23:08 -05:00 committed by GitHub
commit b3522fe9d4
1 changed files with 8 additions and 8 deletions

View File

@ -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.