[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/6] iotests: Support job-complete in run_job()
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
Re: [PATCH 5/6] iotests: Support job-complete in run_job() |
Date: |
Wed, 20 Nov 2019 14:56:44 +0000 |
20.11.2019 17:03, Kevin Wolf wrote:
> Automatically complete jobs that have a 'ready' state and need an
> explicit job-complete. Without this, run_job() would hang for such
> jobs.
>
> Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> tests/qemu-iotests/iotests.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
> index b409198e47..c4063ef6bb 100644
> --- a/tests/qemu-iotests/iotests.py
> +++ b/tests/qemu-iotests/iotests.py
> @@ -617,6 +617,8 @@ class VM(qtest.QEMUQtestMachine):
> error = j['error']
> if use_log:
> log('Job failed: %s' % (j['error']))
> + elif status == 'ready':
> + self.qmp_log('job-complete', id=job)
> elif status == 'pending' and not auto_finalize:
> if pre_finalize:
> pre_finalize()
>
--
Best regards,
Vladimir
- Re: [PATCH 2/6] block: truncate: Don't make backing file data visible, (continued)
- [PATCH 3/6] iotests: Add qemu_io_log(), Kevin Wolf, 2019/11/20
- [PATCH 5/6] iotests: Support job-complete in run_job(), Kevin Wolf, 2019/11/20
- [PATCH 4/6] iotests: Fix timeout in run_job(), Kevin Wolf, 2019/11/20
- [PATCH 6/6] iotests: Test committing to short backing file, Kevin Wolf, 2019/11/20
- Re: [PATCH 6/6] iotests: Test committing to short backing file, Vladimir Sementsov-Ogievskiy, 2019/11/20
- Re: [PATCH for-4.2? 0/6] block: Fix resize (extending) of short overlays, Vladimir Sementsov-Ogievskiy, 2019/11/20