[lldb] Print the command output when 'expect' fails even if a custom msg is passed

Currently if 'expect' fails and a custom msg is supplied, then lldbtest
will not print the actual command output. This makes it impossible to know
why the test actually failed. This just prints the command output even
if the msg parameter was supplied.
This commit is contained in:
Raphael Isemann 2020-01-31 10:12:06 +01:00
parent 85314e9b7a
commit 99e63f5825
1 changed files with 2 additions and 1 deletions

View File

@ -2364,7 +2364,8 @@ FileCheck output:
break break
self.assertTrue(matched if matching else not matched, self.assertTrue(matched if matching else not matched,
msg if msg else EXP_MSG(str, output, exe)) msg + "\nCommand output:\n" + EXP_MSG(str, output, exe)
if msg else EXP_MSG(str, output, exe))
def expect_expr( def expect_expr(
self, self,