Skip to content
Commit 9cd97956 authored by Sergio Lopez's avatar Sergio Lopez Committed by Kevin Wolf
Browse files

iotests: 153: Wait for an answer to QMP commands



There are various actions in this test that must be executed
sequentially, as the result of it depends on the state triggered by the
previous one.

If the last argument of _send_qemu_cmd() is an empty string, it just
sends the QMP commands without waiting for an answer. While unlikely, it
may happen that the next action in the test gets invoked before QEMU
processes the QMP request.

This issue seems to be easier to reproduce on servers with limited
resources or highly loaded.

With this change, we wait for an answer on all _send_qemu_cmd() calls.

Signed-off-by: default avatarSergio Lopez <slp@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 2345bde6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment