瀏覽代碼

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>
Paul E. McKenney 10 年之前
父節點
當前提交
91afa21d5d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/testing/selftests/rcutorture/bin/kvm.sh

+ 1 - 1
tools/testing/selftests/rcutorture/bin/kvm.sh

@@ -310,7 +310,7 @@ function dump(first, pastlast)
 			cfr[jn] = cf[j] "." cfrep[cf[j]];
 			cfr[jn] = cf[j] "." cfrep[cf[j]];
 		}
 		}
 		if (cpusr[jn] > ncpus && ncpus != 0)
 		if (cpusr[jn] > ncpus && ncpus != 0)
-			ovf = "(!)";
+			ovf = "-ovf";
 		else
 		else
 			ovf = "";
 			ovf = "";
 		print "echo ", cfr[jn], cpusr[jn] ovf ": Starting build. `date`";
 		print "echo ", cfr[jn], cpusr[jn] ovf ": Starting build. `date`";