提交 91afa21d 编写于 作者: P Paul E. McKenney

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: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 b826565a
...@@ -310,7 +310,7 @@ function dump(first, pastlast) ...@@ -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`";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册