]> git.karo-electronics.de Git - linux-beck.git/commitdiff
torture: Avoid script syntax error when insufficient CPUs
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 8 Feb 2015 04:08:51 +0000 (20:08 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 3 Mar 2015 19:17:04 +0000 (11:17 -0800)
Parentheses are special to bash, so use an overflow flag that doesn't
use them.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/kvm.sh

index 368d64ac779e52e1cb787564bc1ddcc880e91ec5..dd2812ceb0baba2bb4f39343e428582e9619179f 100755 (executable)
@@ -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`";