]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-iotests: ignore leaks on failure paths in 026
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 16 Sep 2019 17:53:20 +0000 (20:53 +0300)
committerMax Reitz <mreitz@redhat.com>
Thu, 10 Oct 2019 08:56:17 +0000 (10:56 +0200)
commitee1e66d9570a763a07662883093bb297ba22c5ee
tree2cd82f4fbe134f142f6f4a067893d473d880bae3
parent98b2e3c9ab3abfe476a2b02f8f51813edb90e72d
qemu-iotests: ignore leaks on failure paths in 026

Upcoming asynchronous handling of sub-parts of qcow2 requests will
change number of leaked clusters and even make it racy. As a
preparation, ignore leaks on failure parts in 026.

It's not trivial to just grep or substitute qemu-img output for such
thing. Instead do better: 3 is a error code of qemu-img check, if only
leaks are found. Catch this case and print success output.

Suggested-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190916175324.18478-2-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/026
tests/qemu-iotests/026.out
tests/qemu-iotests/026.out.nocache
tests/qemu-iotests/common.rc