torture: Prevent jitter processes from delaying failed run
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 18 Sep 2020 20:26:22 +0000 (13:26 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 7 Nov 2020 01:13:53 +0000 (17:13 -0800)
commitc64659ef29e3901be0900ec6fb0485fa3dbdcfd8
tree35557914b90d2f11600f4d5b148faf61f5f517f2
parent6b74fa0a776e3715d385b23d29db469179c825b0
torture: Prevent jitter processes from delaying failed run

Even when the kernel panics and qemu dies, runs with jitter enabled will
continue uselessly until the jitter.sh processes terminate.  This can
be annoying if a planned one-hour run instead dies during boot.

This commit therefore kills the jitter.sh processes when the run ends
more than one minute prior to the termination time specified by the
kvm.sh --duration argument or its default.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
tools/testing/selftests/rcutorture/bin/kvm.sh