iotests: Warn if python subprocess is killed
authorMax Reitz <mreitz@redhat.com>
Wed, 2 Sep 2015 18:52:28 +0000 (20:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Sep 2015 18:59:48 +0000 (20:59 +0200)
commit2ef6093cd6990314304f2d3b18eb476ee418d73c
tree1c4ec055d7c67bc8dce6a47061c4b18dfeca4f25
parent934659c460d46c948cf348822fda1d38556ed9a4
iotests: Warn if python subprocess is killed

Currently, if a subprocess of a python test (i.e. qemu-io, qemu-img, or
qemu) receives a signal and is subsequently aborted, this is not logged.

This patch makes python tests always check the exit code of these
subprocesses, and emit a message if they have been killed.

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/iotests.py