From: Paul E. McKenney Date: Sun, 8 Feb 2015 04:08:51 +0000 (-0800) Subject: torture: Avoid script syntax error when insufficient CPUs X-Git-Tag: v4.1-rc1~145^2~2^2^3~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91afa21d5d0d79a02984d37509f1f827ae460f4e;p=karo-tx-linux.git torture: Avoid script syntax error when insufficient CPUs Parentheses are special to bash, so use an overflow flag that doesn't use them. Signed-off-by: Paul E. McKenney --- diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 368d64ac779e..dd2812ceb0ba 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -310,7 +310,7 @@ function dump(first, pastlast) cfr[jn] = cf[j] "." cfrep[cf[j]]; } if (cpusr[jn] > ncpus && ncpus != 0) - ovf = "(!)"; + ovf = "-ovf"; else ovf = ""; print "echo ", cfr[jn], cpusr[jn] ovf ": Starting build. `date`";