]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: rebase qemu_io() on top of qemu_tool()
authorJohn Snow <jsnow@redhat.com>
Mon, 18 Apr 2022 21:14:59 +0000 (17:14 -0400)
committerHanna Reitz <hreitz@redhat.com>
Mon, 25 Apr 2022 12:30:27 +0000 (14:30 +0200)
commit6dede6a493d245170e90f316883c966542f05bb5
tree15da5aa00d44957731767198fe0d3c9ef2583873
parentb2d68a8e56a1ee0602f91c6e8e5122cfd70bab90
iotests: rebase qemu_io() on top of qemu_tool()

Rework qemu_io() to be analogous to qemu_img(); a function that requires
a return code of zero by default unless disabled explicitly.

Tests that use qemu_io():
030 040 041 044 055 056 093 124 129 132 136 148 149 151 152 163 165 205
209 219 236 245 248 254 255 257 260 264 280 298 300 302 304
image-fleecing migrate-bitmaps-postcopy-test migrate-bitmaps-test
migrate-during-backup migration-permissions

Test that use qemu_io_log():
242 245 255 274 303 307 nbd-reconnect-on-open

Copy-pastables for testing/verification:

./check -qcow2 030 040 041 044 055 056 124 129 132 151 152 163 165 209 \
               219 236 242 245 248 254 255 257 260 264 274 \
               280 298 300 302 303 304 307 image-fleecing \
               migrate-bitmaps-postcopy-test migrate-bitmaps-test \
               migrate-during-backup nbd-reconnect-on-open
./check -raw 093 136 148 migration-permissions
./check -nbd 205

# ./configure configure --disable-gnutls --enable-gcrypt
# this ALSO requires passwordless sudo.
./check -luks 149

# Just the tests that were edited in this commit:
./check -qcow2 030 040 242 245
./check -raw migration-permissions
./check -nbd 205
./check -luks 149

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20220418211504.943969-8-jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/030
tests/qemu-iotests/149
tests/qemu-iotests/205
tests/qemu-iotests/245
tests/qemu-iotests/iotests.py
tests/qemu-iotests/tests/migration-permissions