Skip to content

Commit

Permalink
Merge pull request grpc#759 from ctiller/test
Browse files Browse the repository at this point in the history
Support writes failing
  • Loading branch information
nicolasnoble committed Feb 25, 2015
2 parents a6792f3 + 23d2f3f commit f4f0b68
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions tools/run_tests/jobset.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,19 @@ def shuffle_iteratable(it):


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


def which(filename):
Expand Down

0 comments on commit f4f0b68

Please sign in to comment.