[test] Print the log output on failure.

This ensures that if the assertion fails we dump the log content. This
should help me investigate what the output looks like on Windows, where
the test is failing.

llvm-svn: 371899
This commit is contained in:
Jonas Devlieghere 2019-09-13 21:15:03 +00:00
parent fe4dc2e713
commit a3e27633a8
1 changed files with 2 additions and 2 deletions

View File

@ -44,5 +44,5 @@ class APILogTestCase(TestBase):
create_target = 'lldb::SBTarget lldb::SBDebugger::CreateTarget(const char *) (0x{}, "")'.format(
debugger_addr)
self.assertTrue(get_scripting_language in log)
self.assertTrue(create_target in log)
self.assertTrue(get_scripting_language in log, log)
self.assertTrue(create_target in log, log)