Merge pull request #759 from ctiller/test

Support writes failing
changes/62/217562/1^2
Nicolas Noble 10 years ago
commit f4f0b685b6
  1. 23
      tools/run_tests/jobset.py

@ -101,16 +101,19 @@ _TAG_COLOR = {
def message(tag, message, explanatory_text=None, do_newline=False): def message(tag, message, explanatory_text=None, do_newline=False):
sys.stdout.write('%s%s%s\x1b[%d;%dm%s\x1b[0m: %s%s' % ( try:
_BEGINNING_OF_LINE, sys.stdout.write('%s%s%s\x1b[%d;%dm%s\x1b[0m: %s%s' % (
_CLEAR_LINE, _BEGINNING_OF_LINE,
'\n%s' % explanatory_text if explanatory_text is not None else '', _CLEAR_LINE,
_COLORS[_TAG_COLOR[tag]][1], '\n%s' % explanatory_text if explanatory_text is not None else '',
_COLORS[_TAG_COLOR[tag]][0], _COLORS[_TAG_COLOR[tag]][1],
tag, _COLORS[_TAG_COLOR[tag]][0],
message, tag,
'\n' if do_newline or explanatory_text is not None else '')) message,
sys.stdout.flush() '\n' if do_newline or explanatory_text is not None else ''))
sys.stdout.flush()
except:
pass
def which(filename): def which(filename):

Loading…
Cancel
Save