[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/7] iotests: Fix run_job() with use_log=False
From: |
Kevin Wolf |
Subject: |
[PATCH v2 3/7] iotests: Fix run_job() with use_log=False |
Date: |
Tue, 10 Mar 2020 12:38:27 +0100 |
The 'job-complete' QMP command should be run with qmp() rather than
qmp_log() if use_log=False is passed.
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/iotests.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 8815052eb5..23043baa26 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -624,7 +624,10 @@ class VM(qtest.QEMUQtestMachine):
if use_log:
log('Job failed: %s' % (j['error']))
elif status == 'ready':
- self.qmp_log('job-complete', id=job)
+ if use_log:
+ self.qmp_log('job-complete', id=job)
+ else:
+ self.qmp('job-complete', id=job)
elif status == 'pending' and not auto_finalize:
if pre_finalize:
pre_finalize()
--
2.20.1
- [PATCH v2 0/7] block: Relax restrictions for blockdev-snapshot, Kevin Wolf, 2020/03/10
- [PATCH v2 1/7] block: Make bdrv_get_cumulative_perm() public, Kevin Wolf, 2020/03/10
- [PATCH v2 2/7] block: Relax restrictions for blockdev-snapshot, Kevin Wolf, 2020/03/10
- [PATCH v2 5/7] block: Fix cross-AioContext blockdev-snapshot, Kevin Wolf, 2020/03/10
- [PATCH v2 3/7] iotests: Fix run_job() with use_log=False,
Kevin Wolf <=
- [PATCH v2 4/7] iotests: Test mirror with temporarily disabled target backing file, Kevin Wolf, 2020/03/10
- [PATCH v2 6/7] iotests: Add iothread cases to 155, Kevin Wolf, 2020/03/10
- [PATCH v2 7/7] qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot', Kevin Wolf, 2020/03/10
- Re: [PATCH v2 0/7] block: Relax restrictions for blockdev-snapshot, Kevin Wolf, 2020/03/10