qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 10/24] iotest 065: explicit compression type


From: Thomas Huth
Subject: Re: [PULL 10/24] iotest 065: explicit compression type
Date: Mon, 14 Feb 2022 20:53:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 01/02/2022 15.42, Hanna Reitz wrote:
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>

The test checks different options. It of course fails if set
IMGOPTS='compression_type=zstd'. So, let's be explicit in what
compression type we want and independent of IMGOPTS. Test both existing
compression types.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20211223160144.1097696-9-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
---
  tests/qemu-iotests/065 | 16 ++++++++--------
  1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/qemu-iotests/065 b/tests/qemu-iotests/065
index dc7716275f..f7c1b68dad 100755
--- a/tests/qemu-iotests/065
+++ b/tests/qemu-iotests/065
@@ -88,7 +88,7 @@ class TestQMP(TestImageInfoSpecific):
class TestQCow2(TestQemuImgInfo):
      '''Testing a qcow2 version 2 image'''
-    img_options = 'compat=0.10'
+    img_options = 'compat=0.10,compression_type=zlib'
      json_compare = { 'compat': '0.10', 'refcount-bits': 16,
                       'compression-type': 'zlib' }
      human_compare = [ 'compat: 0.10', 'compression type: zlib',
@@ -96,17 +96,17 @@ class TestQCow2(TestQemuImgInfo):
class TestQCow3NotLazy(TestQemuImgInfo):
      '''Testing a qcow2 version 3 image with lazy refcounts disabled'''
-    img_options = 'compat=1.1,lazy_refcounts=off'
+    img_options = 'compat=1.1,lazy_refcounts=off,compression_type=zstd'
      json_compare = { 'compat': '1.1', 'lazy-refcounts': False,
                       'refcount-bits': 16, 'corrupt': False,
-                     'compression-type': 'zlib', 'extended-l2': False }
-    human_compare = [ 'compat: 1.1', 'compression type: zlib',
+                     'compression-type': 'zstd', 'extended-l2': False }
+    human_compare = [ 'compat: 1.1', 'compression type: zstd',
                        'lazy refcounts: false', 'refcount bits: 16',
                        'corrupt: false', 'extended l2: false' ]

iotest 065 is currently failing on my laptop - and I think this patch here is the reason (thanks to jsnow for helping me with the debugging): I don't have libzstd-devel installed on my system, so my QEMU does not feature the zstd compression algorithm. But this tests wants to use it, without checking its availability first. Could you please add such a check so that it works without zstd, too?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]