Skip to contentSkip to conversation

iotests/024: exclude 'backing file format' field from the output

PATCH Applied Andrey Drobyshev 4 participants 4 messages Jul 30, 2024 – Aug 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iotests/024: exclude 'backing file format' field from the output

Apparently 'qemu-img info' doesn't report the backing file format field for qed (as it does for qcow2):

$ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F qed top.qed 1M
$ qemu-img create -f qcow2 base.qcow2 1M && qemu-img create -f qcow2 -b base.qcow2 -F qcow2 top.qcow2 1M
$ qemu-img info top.qed | grep 'backing file format'
$ qemu-img info top.qcow2 | grep 'backing file format'
backing file format: qcow2

This leads to the 024 test failure with -qed. Let's just filter the field out and exclude it from the output.

This is a fixup for the commit f93e65ee51 ("iotests/{024, 271}: add testcases for qemu-img rebase").

---
 tests/qemu-iotests/024     | 2 +-
 tests/qemu-iotests/024.out | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
tests/qemu-iotests/024 +1 -1
index 285f17e79f..b29c76e161 100755
@@ -283,7 +283,7 @@ TEST_IMG=$BASE_OLD _make_test_img -b "$BASE_NEW" -F $IMGFMT \
 CLUSTER_SIZE=$(( CLUSTER_SIZE * 2 )) TEST_IMG=$OVERLAY \
     _make_test_img -b "$BASE_OLD" -F $IMGFMT $(( CLUSTER_SIZE * 6 ))
 
-TEST_IMG=$OVERLAY _img_info
+TEST_IMG=$OVERLAY _img_info | grep -v '^backing file format:'
 
 echo
 echo "Fill backing files with data"
tests/qemu-iotests/024.out +0 -1
index e1e8eea863..3d1e31927a 100644
@@ -214,7 +214,6 @@ file format: IMGFMT
 virtual size: 384 KiB (393216 bytes)
 cluster_size: 131072
 backing file: TEST_DIR/subdir/t.IMGFMT.base_old
-backing file format: IMGFMT
 
 Fill backing files with data
 
Signature · 1 line
2.39.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Andrey Drobyshev

Apparently 'qemu-img info' doesn't report the backing file format field for qed (as it does for qcow2):

$ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F qed top.qed 1M
$ qemu-img create -f qcow2 base.qcow2 1M && qemu-img create -f qcow2 -b base.qcow2 -F qcow2 top.qcow2 1M
$ qemu-img info top.qed | grep 'backing file format'
$ qemu-img info top.qcow2 | grep 'backing file format'
backing file format: qcow2

This leads to the 024 test failure with -qed. Let's just filter the field out and exclude it from the output.

This is a fixup for the commit f93e65ee51 ("iotests/{024, 271}: add testcases for qemu-img rebase").

Quoted 6 lines
---
 tests/qemu-iotests/024     | 2 +-
 tests/qemu-iotests/024.out | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org
#2 lore raw
In reply to Andrey Drobyshev
Quoted 9 lines · Andrey Drobyshev

Apparently 'qemu-img info' doesn't report the backing file format field for qed (as it does for qcow2):

$ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F qed top.qed 1M
$ qemu-img create -f qcow2 base.qcow2 1M && qemu-img create -f qcow2 -b base.qcow2 -F qcow2 top.qcow2 1M
$ qemu-img info top.qed | grep 'backing file format'
$ qemu-img info top.qcow2 | grep 'backing file format'
backing file format: qcow2
Quoted 7 lines

This leads to the 024 test failure with -qed. Let's just filter the field out and exclude it from the output.

This is a fixup for the commit f93e65ee51 ("iotests/{024, 271}: add testcases for qemu-img rebase").

s/Found/Reported/

Quoted 5 lines
---
  tests/qemu-iotests/024     | 2 +-
  tests/qemu-iotests/024.out | 1 -
  2 files changed, 1 insertion(+), 2 deletions(-)
Applied
#3 lore raw
In reply to Andrey Drobyshev

Am 30.07.2024 um 11:47 hat Andrey Drobyshev geschrieben:

Quoted 9 lines

Apparently 'qemu-img info' doesn't report the backing file format field for qed (as it does for qcow2):

$ qemu-img create -f qed base.qed 1M && qemu-img create -f qed -b base.qed -F qed top.qed 1M
$ qemu-img create -f qcow2 base.qcow2 1M && qemu-img create -f qcow2 -b base.qcow2 -F qcow2 top.qcow2 1M
$ qemu-img info top.qed | grep 'backing file format'
$ qemu-img info top.qcow2 | grep 'backing file format'
backing file format: qcow2
Quoted 8 lines

This leads to the 024 test failure with -qed. Let's just filter the field out and exclude it from the output.

This is a fixup for the commit f93e65ee51 ("iotests/{024, 271}: add testcases for qemu-img rebase").

Thanks, applied to the block branch.

Kevin