Skip to contentSkip to conversation

iotests: Use _img_info in test 089

PATCH Applied Max Reitz 2 participants 2 messages May 20, 2014 – May 21, 2014

lore
Share & tools
lore

Max Reitz

author
#0 lore raw

PATCH 1/1 iotests: Use _img_info in test 089

Currently, test 089 uses $QEMU_IMG info manually in order to obtain the according output. However, the iotests should generally use _img_info as this filters out more irrelevant information such as the host image size or format specific information. Therefore, test 089 should use _img_info as well.

---
This is a follow-up patch for:
[PATCH v3 4/4] iotests: Add test for the JSON protocol

---
 tests/qemu-iotests/089     | 3 +--
 tests/qemu-iotests/089.out | 4 ----
 2 files changed, 1 insertion(+), 6 deletions(-)
tests/qemu-iotests/089 +1 -2
index ef47601..dffc977 100755
@@ -107,8 +107,7 @@ echo
 echo "=== Testing qemu-img info output ==="
 echo
 
-$QEMU_IMG info "json:{\"driver\":\"qcow2\",\"file.filename\":\"$TEST_IMG\"}" \
-    | _filter_testdir | _filter_imgfmt
+TEST_IMG="json:{\"driver\":\"qcow2\",\"file.filename\":\"$TEST_IMG\"}" _img_info
 
 
 echo
tests/qemu-iotests/089.out +0 -4
index d6cf783..4ca2f88 100644
@@ -31,11 +31,7 @@ read failed: Input/output error
 image: TEST_DIR/t.IMGFMT
 file format: IMGFMT
 virtual size: 64M (67108864 bytes)
-disk size: 324K
 cluster_size: 65536
-Format specific information:
-    compat: 1.1
-    lazy refcounts: false
 
 === Testing option merging ===
 
Signature · 1 line
1.9.3
#1 lore raw
Quoted 8 lines · Max Reitz

Currently, test 089 uses $QEMU_IMG info manually in order to obtain the according output. However, the iotests should generally use _img_info as this filters out more irrelevant information such as the host image size or format specific information. Therefore, test 089 should use _img_info as well.

Quoted 7 lines

---
This is a follow-up patch for:
[PATCH v3 4/4] iotests: Add test for the JSON protocol

---
 tests/qemu-iotests/089     | 3 +--
 tests/qemu-iotests/089.out | 4 ----
 2 files changed, 1 insertion(+), 6 deletions(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan