The first patch adds the '--duration SECONDS' argument. After the specified duration the runner allows to end the current test and then exits.
The second patch adds forced termination of a program under test, if the test execution takes more than 5 minutes. Terminated tests are marked as failed. If a program under test hangs, then the specified test duration can be overrun up to 5 minutes. The patch series is based on https://github.com/stefanha/qemu/commits/block, commit 07a45925fa88376f8583a333e74f7eeb0f455685 Maria Kustova (2): runner: Add an argument for test duration runner: Kill a program under test by time-out tests/image-fuzzer/runner.py | 52 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 9 deletions(-) -- 1.9.3