iotests: 109: Filter out "len" of failed jobs
commit24dfdfd0ff79ea094c41eb34d9acdc0a689d5617
authorFam Zheng <famz@redhat.com>
Thu, 20 Apr 2017 00:54:28 +0000 (20 08:54 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 14:01:11 +0000 (27 16:01 +0200)
treeb0c245e4b6f6ec492ccebd62f79b24109599fbe8
parent8248169497ec8b15504815e86bb85b588dbe0592
iotests: 109: Filter out "len" of failed jobs

Mirror calculates job len from current I/O progress:

    s->common.len = s->common.offset +
                    (cnt + s->sectors_in_flight) * BDRV_SECTOR_SIZE;

The final "len" of a failed mirror job in iotests 109 depends on the
subtle timing of the completion of read and write issued in the first
mirror iteration.  The second iteration may or may not have run when the
I/O error happens, resulting in non-deterministic output of the
BLOCK_JOB_COMPLETED event text.

Similar to what was done in a752e4786, filter out the field to make the
test robust.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/109
tests/qemu-iotests/109.out
tests/qemu-iotests/common.filter