Buid logs print with no new lines

pull/2708/head
Sarah Marsh 2016-09-13 16:58:50 -05:00
parent 66b347c6e6
commit 09c5be5921
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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.