]> Git Repo - qemu.git/commitdiff
iotests: Fix run_job() with use_log=False
authorKevin Wolf <[email protected]>
Tue, 10 Mar 2020 11:38:27 +0000 (12:38 +0100)
committerKevin Wolf <[email protected]>
Wed, 11 Mar 2020 14:54:38 +0000 (15:54 +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 <[email protected]>
Message-Id: <20200310113831[email protected]>
Reviewed-by: Peter Krempa <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests/iotests.py

index 8815052eb538ad77edbed20f9c45727956368a6f..23043baa26b355299578dc0c9a385a8cd40aac74 100644 (file)
@@ -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()
This page took 0.03448 seconds and 4 git commands to generate.