iotests/106, 214, 308: Read only one size line
authorHanna Reitz <hreitz@redhat.com>
Mon, 20 Jun 2022 16:27:02 +0000 (18:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 1 Feb 2023 15:52:33 +0000 (16:52 +0100)
commit74163adda3101b127943f7cbbf8fcccd2d472426
tree9abd3d159664229f79c1a2841f08346c05ff81b2
parentbcc6777ad6facede73c0cf8b1700045bf4365f7d
iotests/106, 214, 308: Read only one size line

These tests read size information (sometimes disk size, sometimes
virtual size) from qemu-img info's output.  Once qemu-img starts
printing info about child nodes, we are going to see multiple instances
of that per image, but these tests are only interested in the first one,
so use "head -n 1" to get it.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220620162704.80987-11-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/106
tests/qemu-iotests/214
tests/qemu-iotests/308