mirror of https://github.com/ARMmbed/mbed-os.git
Buid logs print with no new lines
parent
66b347c6e6
commit
09c5be5921
|
@ -122,8 +122,7 @@ class IAR(Exporter):
|
|||
num_errors = 0
|
||||
#Parse the output for printing and errors
|
||||
for line in p.stdout.readlines():
|
||||
print line
|
||||
sys.stdout.flush()
|
||||
sys.stdout.write(line)
|
||||
error_re = '\s*Total number of errors:\s*(\d+)\s*'
|
||||
m = re.match(error_re, line)
|
||||
if m is not None:
|
||||
|
|
|
@ -156,7 +156,7 @@ class Uvision(Exporter):
|
|||
cmd = [uv_exe, '-r', '-j0', '-o', join(self.export_dir,'build_log.txt'), join(self.export_dir,self.project_name+".uvprojx")]
|
||||
ret_code = subprocess.call(cmd)
|
||||
with open(join(self.export_dir, 'build_log.txt'), 'r') as build_log:
|
||||
print "\n".join(build_log.readlines())
|
||||
print build_log.read()
|
||||
|
||||
if ret_code != success and ret_code != warn:
|
||||
# Seems like something went wrong.
|
||||
|
|
Loading…
Reference in New Issue