aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaicheng Li <haicheng.li@intel.com>2010-04-01 16:16:41 +0800
committerAndi Kleen <ak@linux.intel.com>2010-04-11 19:21:22 +0200
commit7aeae042f2dc23989a8b5356f5516ff32ea92059 (patch)
tree8c873b7b231a98bf7ddf69d4960795959091f25b
parentfc9c5a4f50f8568687748dab3936cd24c6990ad3 (diff)
downloadmce-test-7aeae042f2dc23989a8b5356f5516ff32ea92059.tar.gz
hwpoison.sh: use default child process num for each workload.
If I run hwpoison.sh without -C option I get the following errors: ./hwpoison.sh: line 366: [: -eq: unary operator expected ./hwpoison.sh: line 371: [: -gt: unary operator expected ./hwpoison.sh: line 372: [: -eq: unary operator expected The reason is g_children is NULL, which should be zero. Reported-by: Evan McNabb <emcnabb@redhat.com> Signed-off-by: Haicheng Li <haicheng.li@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rwxr-xr-xstress/hwpoison.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/stress/hwpoison.sh b/stress/hwpoison.sh
index 3b16335..2c3f0d2 100755
--- a/stress/hwpoison.sh
+++ b/stress/hwpoison.sh
@@ -960,7 +960,8 @@ select_injector()
fi
}
-g_children= # process num of workloads.
+g_children=0 # child process num for each workload.
+ # 0 means using default child process num of each workload.
g_dev=
g_debugfs=
g_netdev=