scripts/bench-block-job: switch to AQMP
For this commit, we only need to remove accommodations for the synchronous QMP library. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Beraldo Leal <bleal@redhat.com> Acked-by: Hanna Reitz <hreitz@redhat.com> Message-id: 20220321203315.909411-3-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
a4225303a1
commit
28d4f06e0a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user