Skip to content
Snippets Groups Projects
Commit ef7d27f8 authored by Alvise de'Faveri's avatar Alvise de'Faveri
Browse files

[SBS] Colorize only stderr (fix false positives)

parent 174a0823
Branches
Tags
No related merge requests found
......@@ -330,6 +330,15 @@ for i in mainfiles:
with open('build/%s' % i, 'w') as f:
f.write(build_makefile(make_template, mainfiles[i], i))
# stdout printed only in verbose
if options.log == True:
p = subprocess.Popen(['make', '-j', str(options.JOBS), '-f', 'build/%s' % i]
+ cleanparam,
universal_newlines=True,
#stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
bufsize=1)
else:
p = subprocess.Popen(['make', '-j', str(options.JOBS), '-f', 'build/%s' % i]
+ cleanparam,
universal_newlines=True,
......@@ -337,11 +346,6 @@ for i in mainfiles:
stderr=subprocess.PIPE,
bufsize=1)
# stdout printed only in verbose
with p.stdout:
for line in iter(p.stdout.readline, ''):
if options.log == True:
print_make_output(line)
#stderr always printed
with p.stderr:
for line in iter(p.stderr.readline, ''):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment