]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests/118: Add -blockdev based tests
authorKevin Wolf <kwolf@redhat.com>
Tue, 30 Jul 2019 14:49:26 +0000 (16:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 16 Aug 2019 08:25:16 +0000 (10:25 +0200)
commit19462c4bdd3bab7d277aafbdc178daa6ca074c9c
tree257edee872af7cc05bdc23ae7c5d201a02f56112
parentdfc828941c0f1771c5861fce11a428c8c64a206d
iotests/118: Add -blockdev based tests

The code path for -device drive=<node-name> or without a drive=...
option for empty drives, which is supposed to be used with -blockdev
differs enough from the -drive based path with a user-owned
BlockBackend, so we want to test both paths at least for the basic tests
implemented by TestInitiallyFilled and TestInitiallyEmpty.

This would have caught the bug recently fixed for inserting read-only
nodes into a scsi-cd created without a drive=... option.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/118
tests/qemu-iotests/118.out