Greentea test :Added the print in the exception handler

pull/12188/head
Rajkumar Kanagaraj 2020-01-03 09:05:09 -08:00
parent 7fd637b66b
commit e5c6254372
2 changed files with 2 additions and 2 deletions

View File

@ -261,9 +261,11 @@ def main():
library_build_success = True
except ToolException as e:
# ToolException output is handled by the build log
print("ERROR: " + str(e))
pass
except NotSupportedException as e:
# NotSupportedException is handled by the build log
print("ERROR: " + str(e))
pass
except Exception as e:
if options.verbose:

View File

@ -195,7 +195,6 @@ class TestIarToolchain(TestCase):
"""Test that an exception is raised if the std C library is not supported for a target on the IAR toolchain."""
mock_target = mock.MagicMock()
mock_target.core = "Cortex-M4"
mock_target.microlib_supported = False
mock_target.default_lib = "std"
mock_target.supported_c_libs = {"iar": ["small"]}
mock_target.supported_toolchains = ["IAR"]
@ -206,7 +205,6 @@ class TestIarToolchain(TestCase):
"""Test that an exception is raised if the small C library is not supported for a target on the IAR toolchain."""
mock_target = mock.MagicMock()
mock_target.core = "Cortex-M4"
mock_target.microlib_supported = False
mock_target.default_lib = "small"
mock_target.supported_c_libs = {"iar": ["std"]}
mock_target.supported_toolchains = ["IAR"]