]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: Do not suppress segfaults in bash tests
authorMax Reitz <mreitz@redhat.com>
Wed, 2 Sep 2015 18:52:27 +0000 (20:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Sep 2015 18:59:48 +0000 (20:59 +0200)
commit934659c460d46c948cf348822fda1d38556ed9a4
treeb70041c609aea9532ccc395ebe2cf345f15a9580
parent0ed82f7a096537923ef3705946f254d2f61eaf93
iotests: Do not suppress segfaults in bash tests

Currently, if a qemu/qemu-io/qemu-img/qemu-nbd invocation receives a
segmentation fault, that message is invisible in most cases since the
output is generally filtered and bash suppresses the segmentation fault
notice for any but the last element of a pipe.

Most of the time, the test will then fail anyway because of missing
output, but not necessarily (as happened with test 82 recently).

Fix this by making the corresponding environment variables point to
wrapper functions which execute the respective command in a subshell.

Giving options to qemu/qemu-io/qemu-img and path names with spaces were
broken for the Python tests; this patch "accidentally" fixes that.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/039
tests/qemu-iotests/039.out
tests/qemu-iotests/061
tests/qemu-iotests/061.out
tests/qemu-iotests/check
tests/qemu-iotests/common.config
tests/qemu-iotests/common.rc
tests/qemu-iotests/iotests.py