summaryrefslogtreecommitdiff
path: root/round-robin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'round-robin.sh')
-rw-r--r--round-robin.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/round-robin.sh b/round-robin.sh
index d75f6a02..691d9daa 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -239,7 +239,8 @@ build_abe ()
if [ x"$component" = x"check_gdb" ]; then
# Limit GDB testsuites to 16-thread parallelism. Running them
# with greater parallelism makes them too unstable.
- local cpus=$(cat abe/host.conf | sed -e "s/^cpus=\(.*\)/\1/")
+ local cpus=$(cat abe/host.conf \
+ | grep "^cpus=" | sed -e "s/^cpus=\(.*\)/\1/")
if [ "$cpus" -gt 16 ]; then
sed -i -e "s/^cpus=.*/cpus=16/" abe/host.conf
fi