aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/059
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-07-13 15:45:37 +0200
committerKevin Wolf <kwolf@redhat.com>2020-07-14 15:18:59 +0200
commit046e07ca556b3eb44ac5c64911b5bda204403113 (patch)
tree2f80b1bf85944544cdb82f1cf92e9fb5613b85d6 /tests/qemu-iotests/059
parentd0ceea88dea053e0c1c038d42ca98782c2e3872d (diff)
downloadqemu-046e07ca556b3eb44ac5c64911b5bda204403113.zip
qemu-046e07ca556b3eb44ac5c64911b5bda204403113.tar.gz
qemu-046e07ca556b3eb44ac5c64911b5bda204403113.tar.bz2
iotests/059: Filter out disk size with more standard filter
The actual disk space used by an image can vary between filesystems and depending on other settings like an extent size hint. Replace the one call of "$QEMU_IMG info" and the associated one-off sed filter with the more standard "_img_info" and the standard filter from common.filter. Apart from turning "vmdk" into "IMGFMT" and changing the placeholder for cid fields, this only removes the "disk size" line. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/059')
-rwxr-xr-xtests/qemu-iotests/0592
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
index 4c90fc0..dcc442b 100755
--- a/tests/qemu-iotests/059
+++ b/tests/qemu-iotests/059
@@ -82,7 +82,7 @@ _cleanup_test_img
echo
echo "=== Testing big twoGbMaxExtentFlat ==="
_make_test_img -o "subformat=twoGbMaxExtentFlat" 1000G
-$QEMU_IMG info $TEST_IMG | _filter_testdir | sed -e 's/cid: [0-9]*/cid: XXXXXXXX/'
+_img_info --format-specific | _filter_img_info --format-specific
_cleanup_test_img
echo