On 2017-06-09 13:50, Kevin Wolf wrote: > When qemu is exited, all running jobs should be cancelled successfully. > This adds a test for this for all types of block jobs that currently > exist in qemu. > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > tests/qemu-iotests/185 | 189 > +++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/185.out | 59 ++++++++++++++ > tests/qemu-iotests/group | 1 + > 3 files changed, 249 insertions(+) > create mode 100755 tests/qemu-iotests/185 > create mode 100644 tests/qemu-iotests/185.out > > diff --git a/tests/qemu-iotests/185 b/tests/qemu-iotests/185 > new file mode 100755 > index 0000000..645ec9a > --- /dev/null > +++ b/tests/qemu-iotests/185
[...] > +_supported_fmt qcow2 raw > +_supported_proto file > +_supported_os Linux [...] > +echo > +echo === Creating backing chain === > +echo > + > +_send_qemu_cmd $h \ > + "{ 'execute': 'blockdev-snapshot-sync', > + 'arguments': { 'device': 'disk', > + 'snapshot-file': '$TEST_IMG.mid', > + 'format': '$IMGFMT', Not having looked at this series further yet (sorry...), I just noticed that this does not work very well with raw. Max > + 'mode': 'absolute-paths' } }" \ > + "return" > + > +_send_qemu_cmd $h \ > + "{ 'execute': 'human-monitor-command', > + 'arguments': { 'command-line': > + 'qemu-io disk \"write 0 4M\"' } }" \ > + "return" > + > +_send_qemu_cmd $h \ > + "{ 'execute': 'blockdev-snapshot-sync', > + 'arguments': { 'device': 'disk', > + 'snapshot-file': '$TEST_IMG', > + 'format': '$IMGFMT', > + 'mode': 'absolute-paths' } }" \ > + "return"
signature.asc
Description: OpenPGP digital signature