Skip to content

Commit

Permalink
Better logging for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Feb 26, 2015
1 parent 9d6139a commit b84728d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/run_tests/jobset.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ def __init__(self, spec, bin_hash, newline_on_success, travis):
self._state = _RUNNING
self._newline_on_success = newline_on_success
self._travis = travis
if not travis:
message('START', spec.shortname)
message('START', spec.shortname, do_newline=self._travis)

def state(self, update_cache):
"""Poll current state of the job. Prints messages at completion."""
Expand Down Expand Up @@ -290,7 +289,11 @@ def run(cmdlines,
maxjobs if maxjobs is not None else _DEFAULT_MAX_JOBS,
newline_on_success, travis,
cache if cache is not None else NoCache())
for cmdline in shuffle_iteratable(cmdlines):
if not travis:
cmdlines = shuffle_iteratable(cmdlines)
else:
cmdlines = sorted(cmdlines)
for cmdline in cmdlines:
if not js.start(cmdline):
break
return js.finish()

0 comments on commit b84728d

Please sign in to comment.