[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 3/3] qemu-iotests: Test exiting qemu with runnin
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 3/3] qemu-iotests: Test exiting qemu with running job |
Date: |
Fri, 9 Jun 2017 16:10:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
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 <address@hidden>
> ---
> 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
- Re: [Qemu-block] [PATCH 1/3] commit: Fix completion with extra reference, (continued)
Re: [Qemu-block] [PATCH 3/3] qemu-iotests: Test exiting qemu with running job,
Max Reitz <=