mirror of https://github.com/ARMmbed/mbed-os.git
Removing unnecessary bits
parent
750b0ed41a
commit
8095f0e88a
|
|
@ -277,15 +277,14 @@ class ReportExporter():
|
||||||
|
|
||||||
# Test case
|
# Test case
|
||||||
tc = TestCase(name, classname, elapsed_sec, _stdout, _stderr)
|
tc = TestCase(name, classname, elapsed_sec, _stdout, _stderr)
|
||||||
|
|
||||||
# Test case extra failure / error info
|
# Test case extra failure / error info
|
||||||
|
message = test_result['result']
|
||||||
if test_result['result'] == 'FAIL':
|
if test_result['result'] == 'FAIL':
|
||||||
message = test_result['result']
|
|
||||||
tc.add_failure_info(message, _stdout)
|
tc.add_failure_info(message, _stdout)
|
||||||
elif test_result['result'] == 'SKIP':
|
elif test_result['result'] == 'SKIP':
|
||||||
message = test_result['result']
|
|
||||||
tc.add_skipped_info(message, _stdout)
|
tc.add_skipped_info(message, _stdout)
|
||||||
elif test_result['result'] != 'OK':
|
elif test_result['result'] != 'OK':
|
||||||
message = test_result['result']
|
|
||||||
tc.add_error_info(message, _stdout)
|
tc.add_error_info(message, _stdout)
|
||||||
|
|
||||||
test_cases.append(tc)
|
test_cases.append(tc)
|
||||||
|
|
|
||||||
|
|
@ -703,7 +703,7 @@ class mbedToolchain:
|
||||||
|
|
||||||
### NOTIFICATIONS ###
|
### NOTIFICATIONS ###
|
||||||
def info(self, message):
|
def info(self, message):
|
||||||
return self.notify({'type': 'info', 'message': message})
|
self.notify({'type': 'info', 'message': message})
|
||||||
|
|
||||||
def debug(self, message):
|
def debug(self, message):
|
||||||
if self.VERBOSE:
|
if self.VERBOSE:
|
||||||
|
|
@ -713,7 +713,7 @@ class mbedToolchain:
|
||||||
self.notify({'type': 'debug', 'message': message})
|
self.notify({'type': 'debug', 'message': message})
|
||||||
|
|
||||||
def cc_info(self, severity, file, line, message, target_name=None, toolchain_name=None):
|
def cc_info(self, severity, file, line, message, target_name=None, toolchain_name=None):
|
||||||
return self.notify({'type': 'cc',
|
self.notify({'type': 'cc',
|
||||||
'severity': severity,
|
'severity': severity,
|
||||||
'file': file,
|
'file': file,
|
||||||
'line': line,
|
'line': line,
|
||||||
|
|
@ -725,13 +725,13 @@ class mbedToolchain:
|
||||||
msg = {'type': 'progress', 'action': action, 'file': file}
|
msg = {'type': 'progress', 'action': action, 'file': file}
|
||||||
if build_update:
|
if build_update:
|
||||||
msg['percent'] = 100. * float(self.compiled) / float(self.to_be_compiled)
|
msg['percent'] = 100. * float(self.compiled) / float(self.to_be_compiled)
|
||||||
return self.notify(msg)
|
self.notify(msg)
|
||||||
|
|
||||||
def tool_error(self, message):
|
def tool_error(self, message):
|
||||||
return self.notify({'type': 'tool_error', 'message': message})
|
self.notify({'type': 'tool_error', 'message': message})
|
||||||
|
|
||||||
def var(self, key, value):
|
def var(self, key, value):
|
||||||
return self.notify({'type': 'var', 'key': key, 'val': value})
|
self.notify({'type': 'var', 'key': key, 'val': value})
|
||||||
|
|
||||||
from workspace_tools.settings import ARM_BIN
|
from workspace_tools.settings import ARM_BIN
|
||||||
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH, GCC_CS_PATH, CW_EWL_PATH, CW_GCC_PATH
|
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH, GCC_CS_PATH, CW_EWL_PATH, CW_GCC_PATH
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue