]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: Make 136 less flaky
authorMax Reitz <mreitz@redhat.com>
Thu, 9 Nov 2017 20:30:25 +0000 (21:30 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 14 Nov 2017 17:06:25 +0000 (18:06 +0100)
commit19026817f71c698d1acb9c85bf5544b799fc5c2c
tree09da9360af68e5d62ee915177ccd5db452935541
parentddc7093eec38c875a6a2ae18a9ecf563107d9ff0
iotests: Make 136 less flaky

136 executes some AIO requests without a final aio_flush; then it
advances the virtual clock and thus expects the last access time of the
device to be less than the current time when queried (i.e. idle_time_ns
to be greater than 0).  However, without the aio_flush, some requests
may be settled after the clock_step invocation.  In that case,
idle_time_ns would be 0 and the test fails.

Fix this by adding an aio_flush if any AIO request other than some other
aio_flush has been executed.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20171109203025.27493-6-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/136