torture: Suppress torture.sh "Zero time" messages for disabled tests
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 8 May 2025 23:44:58 +0000 (16:44 -0700)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 25 Jun 2025 03:09:35 +0000 (08:39 +0530)
commite40e2391388d8db623fd2ac92d7750648155e9d3
tree1f8782d4d7faf596fa73b45104e703e0abc159d2
parent86731a2a651e58953fc949573895f2fa6d456841
torture: Suppress torture.sh "Zero time" messages for disabled tests

The torture.sh script prints " --- Zero time for locktorture, disabling"
when the --duration parameter is too short to allow the test to run
even when locktorture has been disabled, for example, via --do-none.
The same is true for scftorture and rcutorture.

This commit therefore suppresses this message when the corresponding
test has been disabled.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
tools/testing/selftests/rcutorture/bin/torture.sh