mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1202 from bridadan/singletest-build-return-error-fix
Changing return status of singletest.py if a build failure occurspull/1219/head
commit
2b19a9e933
|
@ -235,4 +235,7 @@ if __name__ == '__main__':
|
||||||
_opts_extend_test_timeout=opts.extend_test_timeout)
|
_opts_extend_test_timeout=opts.extend_test_timeout)
|
||||||
|
|
||||||
# Runs test suite in CLI mode
|
# Runs test suite in CLI mode
|
||||||
singletest_in_cli_mode(single_test)
|
if (singletest_in_cli_mode(single_test)):
|
||||||
|
exit(0)
|
||||||
|
else:
|
||||||
|
exit(-1)
|
||||||
|
|
|
@ -1525,6 +1525,9 @@ def singletest_in_cli_mode(single_test):
|
||||||
# Export build results as html report to sparate file
|
# Export build results as html report to sparate file
|
||||||
write_build_report(build_report, 'tests_build/report.html', single_test.opts_report_build_file_name)
|
write_build_report(build_report, 'tests_build/report.html', single_test.opts_report_build_file_name)
|
||||||
|
|
||||||
|
# Returns True if no build failures of the test projects or their dependencies
|
||||||
|
return len(single_test.build_failures) == 0
|
||||||
|
|
||||||
class TestLogger():
|
class TestLogger():
|
||||||
""" Super-class for logging and printing ongoing events for test suite pass
|
""" Super-class for logging and printing ongoing events for test suite pass
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue