diff options
author | Thomas Huth <thuth@redhat.com> | 2022-02-23 13:43:53 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-03-07 09:19:20 +0100 |
commit | db4b2133b8d3012dfd1977dc12d48d6bf46543d6 (patch) | |
tree | 186a1aa00d0d2c101d75a5bb15f59d18167ff84c /tests/qemu-iotests | |
parent | 024354ea9164d3c4b6fd766784939fe39fa4e166 (diff) | |
download | qemu-db4b2133b8d3012dfd1977dc12d48d6bf46543d6.zip qemu-db4b2133b8d3012dfd1977dc12d48d6bf46543d6.tar.gz qemu-db4b2133b8d3012dfd1977dc12d48d6bf46543d6.tar.bz2 |
tests/qemu-iotests/testrunner: Quote "case not run" lines in TAP mode
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>
Message-Id: <20220223124353.3273898-1-thuth@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests')
-rw-r--r-- | tests/qemu-iotests/testrunner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py index 9a94273..0c7dc34 100644 --- a/tests/qemu-iotests/testrunner.py +++ b/tests/qemu-iotests/testrunner.py @@ -365,7 +365,10 @@ class TestRunner(ContextManager['TestRunner']): description=res.description) if res.casenotrun: - print(res.casenotrun) + if self.tap: + print('#' + res.casenotrun.replace('\n', '\n#')) + else: + print(res.casenotrun) return res |