On Thu, Jan 31, 2019 at 02:38:10PM +0200, Alberto Garcia wrote: > The cmd() method of the QEMUQtestProtocol class sends a qtest command > to QEMU but doesn't wait for the return message ("OK", "FAIL", "ERR"). > Because of this, it can return control to the caller before the > command has actually finished. > > In cases like clock_step or clock_set this means that cmd() can return > before all the timers triggered by the clock change have been fired. > This can be fixed by making cmd() wait for the output of the qtest > command. > > This fixes iotests 093 and 136, which are flaky since commit > 8258292e18c39480b64eba9f3551 when the machine is under heavy workload. > > Signed-off-by: Alberto Garcia <be...@igalia.com> > --- > scripts/qtest.py | 6 ++++++ > 1 file changed, 6 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature