iotests: Skip 211 on insufficient memory
commit6a4e88e17966a963ee818daab3d0c9fa6bf73903
authorMax Reitz <mreitz@redhat.com>
Mon, 18 Feb 2019 18:06:46 +0000 (18 19:06 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 25 Feb 2019 14:11:28 +0000 (25 15:11 +0100)
tree2e82fcbdb5617c9b7741ec4a9676904507356a94
parent26c9296c31bc5d0fab24379af0a1684b099067de
iotests: Skip 211 on insufficient memory

VDI keeps the whole bitmap in memory, and the maximum size (which is
tested here) is 2 GB.  This may not be available on all machines, and it
rarely is available when running a 32 bit build.

Fix this by making VM.run_job() return the error string if an error
occurred, and checking whether that contains "Could not allocate bmap"
in 211.  If so, the test is skipped.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190218180646.30282-1-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/211
tests/qemu-iotests/iotests.py