mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode
When running in TAP mode, stdout is reserved for the TAP protocol. To see the "diff" of the failed test, we have to print it to stderr instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220209101530.3442837-8-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a5c90c61a1
commit
308c8475bc
1 changed files with 4 additions and 1 deletions
|
@ -404,7 +404,10 @@ class TestRunner(ContextManager['TestRunner']):
|
|||
if res.status == 'fail':
|
||||
failed.append(name)
|
||||
if res.diff:
|
||||
print('\n'.join(res.diff))
|
||||
if self.tap:
|
||||
print('\n'.join(res.diff), file=sys.stderr)
|
||||
else:
|
||||
print('\n'.join(res.diff))
|
||||
elif res.status == 'not run':
|
||||
notrun.append(name)
|
||||
elif res.status == 'pass':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue