qemu-iotests: Reduce racy output in 028
commita174da3613f548d58433f64cf3c99dd302c6154a
authorEric Blake <eblake@redhat.com>
Fri, 11 Dec 2015 03:27:17 +0000 (10 20:27 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2016 12:36:23 +0000 (20 13:36 +0100)
treebc082a8818350a285d140706e05788ba97d2300d
parent25ad8e6e95770d4f01844dc2542d861e73b174b2
qemu-iotests: Reduce racy output in 028

On my machine, './check -qcow2 028' was failing about 80% of the
time, due to a race in how many times the repeated attempts
to run 'info block-jobs' could occur before the job was done,
showing up as a failure of fewer '(qemu) ' prompts than in the
expected output.  Silence the output during the repetitions, then
add a final clean command to keep the expected output useful;
once patched, I was finally able to run the test 20 times in a
row with no failures.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/028
tests/qemu-iotests/028.out