[Qemu-devel] [PATCH v9 06/31] iotests.py: Add filter_imgfmt()

Max Reitz posted 31 patches 7 years, 7 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v9 06/31] iotests.py: Add filter_imgfmt()
Posted by Max Reitz 7 years, 7 months ago
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 tests/qemu-iotests/iotests.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 4e67fbbe96..5c45788dac 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -246,6 +246,9 @@ def filter_img_info(output, filename):
         lines.append(line)
     return '\n'.join(lines)
 
+def filter_imgfmt(msg):
+    return msg.replace(imgfmt, 'IMGFMT')
+
 def log(msg, filters=[]):
     for flt in filters:
         msg = flt(msg)
-- 
2.17.1


Re: [Qemu-devel] [PATCH v9 06/31] iotests.py: Add filter_imgfmt()
Posted by Eric Blake 7 years, 7 months ago
On 06/27/2018 07:07 PM, Max Reitz wrote:
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
>   tests/qemu-iotests/iotests.py | 3 +++
>   1 file changed, 3 insertions(+)

Wow, we didn't need that before?  Matches what shell tests have.

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Re: [Qemu-devel] [Qemu-block] [PATCH v9 06/31] iotests.py: Add filter_imgfmt()
Posted by Alberto Garcia 7 years, 6 months ago
On Thu 28 Jun 2018 02:07:20 AM CEST, Max Reitz wrote:
> Signed-off-by: Max Reitz <mreitz@redhat.com>

Reviewed-by: Alberto Garcia <berto@igalia.com>

Berto