commit | 1c236dfe93adcc53c749720380064d0482e656ce | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@redhat.com> | Wed Feb 01 14:07:24 2017 -0800 |
committer | James E. Blair <jeblair@redhat.com> | Mon Feb 06 10:10:48 2017 -0800 |
tree | c6ecf927f626455a7e9dea39f054e44cbabebfc6 | |
parent | f885a63507215efcf3fdf81bc90a96a5c630c990 [diff] |
Tests: store debug logs on error Rather than using the FakeLogger fixture, which always attaches the log stream as a detail, use standard loggers that output to a stringio, and then, only if a test fails, attach the full log as a detail. This allows us to report full debug-level logs for failing tests in the gate (which normally has a limit on how large subunit files can be). Change-Id: I9e6509b7b69838d29582b040ef22f1d66010d45e