torture: Allow four-digit repetition numbers for --configs parameter
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 2 Dec 2021 19:24:05 +0000 (11:24 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Feb 2022 01:25:28 +0000 (17:25 -0800)
In a clear-cut case of "not thinking big enough", kvm.sh limits the
multipliers for torture-test scenarios to three digits.  Although this is
large enough for any single system that I have ever run rcutorture on,
it does become a problem when you want to use kvm-remote.sh to run as
many instances of TREE09 as fit on a set of 20 systems with 80 CPUs each.

Yes, one could simply say "--configs '800*TREE09 800*TREE09'", but this
commit removes the need for that sort of hacky workaround by permitting
four-digit repetition numbers, thus allowing "--configs '1600*TREE09'".

Five-digit repetition numbers remain off the menu.  Should they ever
really be needed, they can easily be added!

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

index 6de0c183db5b9bdf8153e0d42b1d3f46721894e8..348ad177a5acc78814888b84866a29131d132b22 100755 (executable)
@@ -280,7 +280,7 @@ configs_derep=
 for CF in $configs
 do
        case $CF in
-       [0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**)
+       [0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**|[0-9][0-9][0-9][0-9]\**)
                config_reps=`echo $CF | sed -e 's/\*.*$//'`
                CF1=`echo $CF | sed -e 's/^[^*]*\*//'`
                ;;