Skip to content

Commit

Permalink
Print '[ FAILED ]' for failed mojo apptest commands.
Browse files Browse the repository at this point in the history
This makes failure logs more easily searchable.

BUG=NONE
TEST=More searchable apptest failure logs.
R=jam@chromium.org

Review URL: https://codereview.chromium.org/1159823005

Cr-Commit-Position: refs/heads/master@{#331799}
  • Loading branch information
msw authored and Commit bot committed May 28, 2015
1 parent b4c076b commit 457a250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojo/tools/mopy/gtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _print_error(command_line, error):
exit_code = ""
if hasattr(error, 'returncode'):
exit_code = " (exit code %d)" % error.returncode
print "\nFailed command%s: %s" % (exit_code, " ".join(command_line))
print "\n[ FAILED ] Command%s: %s" % (exit_code, " ".join(command_line))
print 72 * "-"
print error.output if hasattr(error, 'output') else error
print 72 * "-"
Expand Down

0 comments on commit 457a250

Please sign in to comment.