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