[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 7/8] tests/qemu-iotests/testrunner: Print diff to stderr in TA
From: |
Thomas Huth |
Subject: |
[PATCH v2 7/8] tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode |
Date: |
Wed, 9 Feb 2022 11:15:29 +0100 |
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>
---
tests/qemu-iotests/testrunner.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py
index 9d20f51bb1..1f7ca1f2f9 100644
--- a/tests/qemu-iotests/testrunner.py
+++ b/tests/qemu-iotests/testrunner.py
@@ -404,7 +404,10 @@ def run_tests(self, tests: List[str], jobs: int = 1) ->
bool:
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':
--
2.27.0
- [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, (continued)
- [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Thomas Huth, 2022/02/09
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Kevin Wolf, 2022/02/11
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Vladimir Sementsov-Ogievskiy, 2022/02/11
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Thomas Huth, 2022/02/11
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Kevin Wolf, 2022/02/11
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Hanna Reitz, 2022/02/11
- Re: [PATCH v2 1/8] tests/qemu-iotests/testrunner: Allow parallel test invocations, Kevin Wolf, 2022/02/11
[PATCH v2 2/8] tests/qemu-iotests: Improve the check for GNU sed, Thomas Huth, 2022/02/09
[PATCH v2 6/8] tests: Do not treat the iotests as separate meson test target anymore, Thomas Huth, 2022/02/09
[PATCH v2 7/8] tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode,
Thomas Huth <=
[PATCH v2 8/8] tests: Remove check-block.sh, Thomas Huth, 2022/02/09
[PATCH v2 5/8] tests/qemu-iotests/meson.build: Call the 'check' script directly, Thomas Huth, 2022/02/09