]> Git Repo - qemu.git/commitdiff
scripts/bench-block-job: switch to AQMP
authorJohn Snow <[email protected]>
Mon, 21 Mar 2022 20:33:13 +0000 (16:33 -0400)
committerJohn Snow <[email protected]>
Thu, 21 Apr 2022 15:01:00 +0000 (11:01 -0400)
For this commit, we only need to remove accommodations for the
synchronous QMP library.

Signed-off-by: John Snow <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Beraldo Leal <[email protected]>
Acked-by: Hanna Reitz <[email protected]>
Message-id: 20220321203315[email protected]
Signed-off-by: John Snow <[email protected]>
scripts/simplebench/bench_block_job.py

index a403c35b08f6c6cd81a2d3adeee0e6020b40e725..af9d1646a4666615d7ad9b9e75e528b88ef90554 100755 (executable)
@@ -27,7 +27,6 @@ import json
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
 from qemu.machine import QEMUMachine
-from qemu.qmp import QMPConnectError
 from qemu.aqmp import ConnectError
 
 
@@ -50,7 +49,7 @@ def bench_block_job(cmd, cmd_args, qemu_args):
         vm.launch()
     except OSError as e:
         return {'error': 'popen failed: ' + str(e)}
-    except (QMPConnectError, ConnectError, socket.timeout):
+    except (ConnectError, socket.timeout):
         return {'error': 'qemu failed: ' + str(vm.get_log())}
 
     try:
This page took 0.029649 seconds and 4 git commands to generate.