diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-02-07 23:08:51 -0500 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-03-03 14:17:04 -0500 |
| commit | 91afa21d5d0d79a02984d37509f1f827ae460f4e (patch) | |
| tree | 6e27950c461156b88fb1351db52864fd5d6f9a4c /tools/testing | |
| parent | b826565aaf8809df146666c03d1acbb7febbd13e (diff) | |
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 <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing')
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 310 | cfr[jn] = cf[j] "." cfrep[cf[j]]; | 310 | cfr[jn] = cf[j] "." cfrep[cf[j]]; |
| 311 | } | 311 | } |
| 312 | if (cpusr[jn] > ncpus && ncpus != 0) | 312 | if (cpusr[jn] > ncpus && ncpus != 0) |
| 313 | ovf = "(!)"; | 313 | ovf = "-ovf"; |
| 314 | else | 314 | else |
| 315 | ovf = ""; | 315 | ovf = ""; |
| 316 | print "echo ", cfr[jn], cpusr[jn] ovf ": Starting build. `date`"; | 316 | print "echo ", cfr[jn], cpusr[jn] ovf ": Starting build. `date`"; |
