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 10 minutes to indicate program freezes. If a program under test hangs, then the specified test duration can be overrun up to 10 minutes. The patch series is based on https://github.com/stefanha/qemu/commits/block, commit 07a45925fa88376f8583a333e74f7eeb0f455685 v1 -> v2: * Trivial fixes based on the review of Fam Zheng * Increased time-out (in some cases 5 minutes interval returned false negatives) Maria Kustova (2): runner: Add an argument for test duration runner: Kill a program under test by time-out tests/image-fuzzer/runner.py | 50 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 8 deletions(-) -- 1.9.3