]> git.proxmox.com Git - mirror_qemu.git/commit
runner: Kill a program under test by time-out
authorMaria Kustova <maxa@catit.be>
Mon, 18 Aug 2014 20:02:35 +0000 (00:02 +0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Aug 2014 09:51:28 +0000 (11:51 +0200)
commit18a7d0c56e1377f3d5fa1dc4d78a15dbab01cd83
treeb92b58b7d327d14e7294470e19a0df0c9fdc067d
parent9d256ca616a298495e46c64da249b1620540930a
runner: Kill a program under test by time-out

If a program under test get frozen, the test should finish and report about its
failure.
In such cases the runner waits for 10 minutes until the program ends its
execution. After this time-out the program will be terminated and the test will
be marked as failed.

For current limitation of test image size to 10 MB as a maximum an execution of
each command takes about several seconds in general, so 10 minutes is enough to
discriminate freeze, but not drastically increase an overall test duration.

Signed-off-by: Maria Kustova <maria.k@catit.be>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/image-fuzzer/runner.py