Merge pull request #2331 from vjpai/tty

Don't send terminal escapes if we're outputing to a file
pull/2337/head
Craig Tiller 10 years ago
commit fc1a49a735
  1. 2
      tools/run_tests/jobset.py

@ -95,7 +95,7 @@ def message(tag, msg, explanatory_text=None, do_newline=False):
return
message.old_tag = tag
message.old_msg = msg
if platform.system() == 'Windows':
if platform.system() == 'Windows' or not sys.stdout.isatty():
if explanatory_text:
print explanatory_text
print '%s: %s' % (tag, msg)

Loading…
Cancel
Save