diff options
author | Max Reitz <mreitz@redhat.com> | 2017-11-23 03:08:21 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-01-23 12:34:43 +0100 |
commit | 1cc6169bb23704a55cee59a2a7d890f109ecc4be (patch) | |
tree | 53252bc2026cb0998f7cf6140e74258428efe606 /tests/qemu-iotests/198 | |
parent | 6dd6d7abf0a68a1e6639572ec09f69a9e0558207 (diff) | |
download | qemu-1cc6169bb23704a55cee59a2a7d890f109ecc4be.zip qemu-1cc6169bb23704a55cee59a2a7d890f109ecc4be.tar.gz qemu-1cc6169bb23704a55cee59a2a7d890f109ecc4be.tar.bz2 |
iotests: Drop format-specific in _filter_img_info
_filter_img_info should remove format-specific information, too. We
already have such a filter in _img_info, and it is very useful for
query-block-named-block-nodes (etc.), too.
However, in 198 we need that information (but we still want the rest of
the filter), so make that filtering optional. Note that "the rest of
the filter" includes filtering of the test directory, so we can drop the
_filter_testdir from 198 at the same time.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171123020832.8165-7-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/198')
-rwxr-xr-x | tests/qemu-iotests/198 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/qemu-iotests/198 b/tests/qemu-iotests/198 index 34ef666..a84a058 100755 --- a/tests/qemu-iotests/198 +++ b/tests/qemu-iotests/198 @@ -91,11 +91,13 @@ $QEMU_IO --object $SECRET0 --object $SECRET1 -c "read -P 0x9 0 $size" --image-op echo echo "== checking image base ==" -$QEMU_IMG info --image-opts $IMGSPECBASE | _filter_img_info | _filter_testdir | sed -e "/^disk size:/ D" +$QEMU_IMG info --image-opts $IMGSPECBASE | _filter_img_info --format-specific \ + | sed -e "/^disk size:/ D" echo echo "== checking image layer ==" -$QEMU_IMG info --image-opts $IMGSPECLAYER | _filter_img_info | _filter_testdir | sed -e "/^disk size:/ D" +$QEMU_IMG info --image-opts $IMGSPECLAYER | _filter_img_info --format-specific \ + | sed -e "/^disk size:/ D" # success, all done |