Skip to content

Commit 244422d

Browse files
authored
Merge pull request #12188 from rajkan01/greentea_test_bug_fix
Greentea test :Added the print in the exception handler
2 parents 7fd637b + 504ef7e commit 244422d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,11 @@ def main():
261261
library_build_success = True
262262
except ToolException as e:
263263
# ToolException output is handled by the build log
264+
print("[ERROR] " + str(e))
264265
pass
265266
except NotSupportedException as e:
266267
# NotSupportedException is handled by the build log
268+
print("[ERROR] " + str(e))
267269
pass
268270
except Exception as e:
269271
if options.verbose:

tools/test/toolchains/test_toolchains.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ def test_iar_default_lib_std_exception(self):
195195
"""Test that an exception is raised if the std C library is not supported for a target on the IAR toolchain."""
196196
mock_target = mock.MagicMock()
197197
mock_target.core = "Cortex-M4"
198-
mock_target.microlib_supported = False
199198
mock_target.default_lib = "std"
200199
mock_target.supported_c_libs = {"iar": ["small"]}
201200
mock_target.supported_toolchains = ["IAR"]
@@ -206,7 +205,6 @@ def test_iar_default_lib_small_exception(self):
206205
"""Test that an exception is raised if the small C library is not supported for a target on the IAR toolchain."""
207206
mock_target = mock.MagicMock()
208207
mock_target.core = "Cortex-M4"
209-
mock_target.microlib_supported = False
210208
mock_target.default_lib = "small"
211209
mock_target.supported_c_libs = {"iar": ["std"]}
212210
mock_target.supported_toolchains = ["IAR"]

0 commit comments

Comments
 (0)