* [PATCH] tests/qemu-iotests/testrunner: Quote "case not run" lines in TAP mode
@ 2022-02-23 12:43 Thomas Huth
2022-02-24 16:56 ` Hanna Reitz
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2022-02-23 12:43 UTC (permalink / raw)
To: qemu-block, Paolo Bonzini; +Cc: Kevin Wolf, Hanna Reitz, qemu-devel
In TAP mode, the stdout is reserved for the TAP protocol, so we
have to make sure to mark other lines with a comment '#' character
at the beginning to avoid that the TAP parser at the other end
gets confused.
To test this condition, run "configure" for example with:
--block-drv-rw-whitelist=copy-before-write,qcow2,raw,file,host_device,blkdebug,null-co,copy-on-read
so that iotest 041 will report that some tests are not run due to
the missing "quorum" driver. Without this change, "make check-block"
fails since the meson tap parser gets confused by these messages.
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 9a94273975..0c7dc34a9e 100644
--- a/tests/qemu-iotests/testrunner.py
+++ b/tests/qemu-iotests/testrunner.py
@@ -365,7 +365,10 @@ def run_test(self, test: str,
description=res.description)
if res.casenotrun:
- print(res.casenotrun)
+ if self.tap:
+ print('#' + res.casenotrun.replace('\n', '\n#'))
+ else:
+ print(res.casenotrun)
return res
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tests/qemu-iotests/testrunner: Quote "case not run" lines in TAP mode
2022-02-23 12:43 [PATCH] tests/qemu-iotests/testrunner: Quote "case not run" lines in TAP mode Thomas Huth
@ 2022-02-24 16:56 ` Hanna Reitz
0 siblings, 0 replies; 2+ messages in thread
From: Hanna Reitz @ 2022-02-24 16:56 UTC (permalink / raw)
To: Thomas Huth, qemu-block, Paolo Bonzini; +Cc: Kevin Wolf, qemu-devel
On 23.02.22 13:43, Thomas Huth wrote:
> In TAP mode, the stdout is reserved for the TAP protocol, so we
> have to make sure to mark other lines with a comment '#' character
> at the beginning to avoid that the TAP parser at the other end
> gets confused.
>
> To test this condition, run "configure" for example with:
>
> --block-drv-rw-whitelist=copy-before-write,qcow2,raw,file,host_device,blkdebug,null-co,copy-on-read
>
> so that iotest 041 will report that some tests are not run due to
> the missing "quorum" driver. Without this change, "make check-block"
> fails since the meson tap parser gets confused by these messages.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> tests/qemu-iotests/testrunner.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Thanks, applied to my block branch:
https://gitlab.com/hreitz/qemu/-/commits/block
Hanna
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-24 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-23 12:43 [PATCH] tests/qemu-iotests/testrunner: Quote "case not run" lines in TAP mode Thomas Huth
2022-02-24 16:56 ` Hanna Reitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).