torture: Make torture.sh refuse to do zero-length runs
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 26 Nov 2020 21:29:24 +0000 (13:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:03:44 +0000 (17:03 -0800)
commitc679d90b21b76319b4a6c719442b6a1ff124b88d
tree91cffe4c14e006f773cdb7fe5eaedfa7f2aca6b1
parentd97addc419e2b1cc1aba2ccc679373fbff7f2521
torture: Make torture.sh refuse to do zero-length runs

This commit causes torture.sh to check for zero-length runs and to take
the cowardly option of refusing to run them, logging its cowardice for
later inspection.

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