aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/178
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2020-02-21 11:25:21 +0000
committerMax Reitz <mreitz@redhat.com>2020-03-11 12:42:29 +0100
commitc3673dcf08c7baf900bf572f6d96d8a7bd565c9d (patch)
tree363dfab4ae75ba2cee828447efa5109f3556da27 /tests/qemu-iotests/178
parenta9da6e49d8281e65d172ed843807a613651d4ef3 (diff)
qemu-img: allow qemu-img measure --object without a filename
In most qemu-img sub-commands the --object option only makes sense when there is a filename. qemu-img measure is an exception because objects may be referenced from the image creation options instead of an existing image file. Allow --object without a filename. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200221112522.1497712-4-stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/178')
-rwxr-xr-xtests/qemu-iotests/1782
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/178 b/tests/qemu-iotests/178
index 51a70fe669..7cf0e27154 100755
--- a/tests/qemu-iotests/178
+++ b/tests/qemu-iotests/178
@@ -50,7 +50,7 @@ _make_test_img 1G
$QEMU_IMG measure # missing arguments
$QEMU_IMG measure --size 2G "$TEST_IMG" # only one allowed
$QEMU_IMG measure "$TEST_IMG" a # only one filename allowed
-$QEMU_IMG measure --object secret,id=sec0,data=MTIzNDU2,format=base64 # missing filename
+$QEMU_IMG measure --object secret,id=sec0,data=MTIzNDU2,format=base64 # size or filename needed
$QEMU_IMG measure --image-opts # missing filename
$QEMU_IMG measure -f qcow2 # missing filename
$QEMU_IMG measure -l snap1 # missing filename