From 2dfaa947a027c96e0168cd5dd1ffa391d7cc8c0e Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Thu, 12 Aug 2021 06:58:56 +0000 Subject: round-robin.sh: Fix GDB parallelization workaround Change-Id: Ib9cb425d3e74d4c9bfda9628a75cd8a2bc967e33 --- round-robin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3