[PATCH] D20252: surface build error content through test event system

Todd Fiala via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 11:56:30 PDT 2016


tfiala created this revision.
tfiala added a reviewer: granata.enrico.
tfiala added a subscriber: llvm-commits.

print build errors nicely in test output

This test infrastructure change adds a new Python exception
for test subject builds that fail.  The output of the build
command is captured and propagated to both the textual test
output display code and to the test event system.

The ResultsFormatter objects have been modified to do something
more useful with this information.  The xUnit formatter
now replaces the non-informative Python build error stacktrace
with the build error content.  The curses ResultsFormatter
prints a 'B' for build errors rather than 'E'.

The xUnit output, in particular, makes it much easier for
developers to track down test subject build errors that cause
test failures when reports come in from CI.

http://reviews.llvm.org/D20252

Files:
  packages/Python/lldbsuite/test/lldbtest.py
  packages/Python/lldbsuite/test/plugins/builder_base.py
  packages/Python/lldbsuite/test/plugins/builder_darwin.py
  packages/Python/lldbsuite/test/test_result.py
  packages/Python/lldbsuite/test_event/build_exception.py
  packages/Python/lldbsuite/test_event/event_builder.py
  packages/Python/lldbsuite/test_event/formatter/curses.py
  packages/Python/lldbsuite/test_event/formatter/xunit.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20252.57229.patch
Type: text/x-patch
Size: 13949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160513/223de2e2/attachment.bin>


More information about the llvm-commits mailing list