Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: add log output to crashes
  • Loading branch information
BridgeAR committed Apr 25, 2018
commit 85d5145fb8d18e5096967a77c9f714b1e1d076a4
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def HasRun(self, output):
if output.HasCrashed():
self.severity = 'crashed'
exit_code = output.output.exit_code
self.traceback = "oh no!\nexit code: " + PrintCrashed(exit_code)
self.traceback += "oh no!\nexit code: " + PrintCrashed(exit_code)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO best solution is to drop this whole line and the prev line.

  • L290 will set the exit code (it's new code)
  • L300 will indicate crash

@BridgeAR BridgeAR Apr 27, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree because the exit code would not be visible in that case anymore. You are right.


if output.HasTimedOut():
self.severity = 'fail'
Expand Down