iotests: Refactor blockdev-reopen test for iothreads
commit97518e11c3d902a32386d33797044f6b79bccc6f
authorKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 14:14:12 +0000 (6 15:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:34:01 +0000 (6 17:34 +0100)
tree1da3e3f98a6878be9fab07922a3fe281f59d84c7
parent19ae9ae014715529f6f50597821c5712bae6ab02
iotests: Refactor blockdev-reopen test for iothreads

We'll want to test more than one successful case in the future, so
prepare the test for that by a refactoring that runs each scenario in a
separate VM.

test_iothreads_switch_{backing,overlay} currently produce errors, but
these are cases that should actually work, by switching either the
backing file node or the overlay node to the AioContext of the other
node.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Message-Id: <20200306141413.30705-2-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/245
tests/qemu-iotests/245.out