- Bug http://b/19664754
- Process each output line immediately once it is received
- If current output is verbose message, update the last record with verbose msg
- Add failure code to summary display
Details
Diff Detail
Event Timeline
zorg/buildbot/commands/LitTestCommand.py | ||
---|---|---|
77 | I think you can refactor this logic of handling verbose logs by using "Failing Tests" as an indicator. That is, if you hit "Failing Tests" before you see any failures, assume that there will be no verbose logs. If you see failing tests before you see "Failing Tests", then there could be verbose logs and so look for them. | |
99 | I think you dont need this anymore. | |
114 | I think to increase readability here, you should move lines 104-114 to line 99. But, this might look different after the refactoring suggested above. |
Fix the problem that the last test failure not always displayed on test summary page for LitTestCommand
Summary:
- Bug http://b/19664754
- Use "Testing Failing" line as indicator, assert summary lines don't have verbose msg
- Output lines before above indicator still follow original logic
- Add failure code to summary display
As suggested by Siva, change variable/function name for readability
- Change from summaryLineReceived to handleSimplifiedLogLine as opposed to handleVerboseLogLine
- Change from summaryLine to simplifiedLog
I think you can remove this, but can be done on another day.