summaryrefslogtreecommitdiff
path: root/round-robin.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-05-27 14:08:59 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-05-28 10:51:33 +0000
commitcb9e011ff0b1d4412102a9e3a2a940a6605b2ade (patch)
tree39d7b846a40a6d4b69a74457e4ae1da768870a74 /round-robin.sh
parentccb12e1c5c404822b067fed6892858e646c72161 (diff)
round-robin.sh: Simplify "check" logic of build_abe()
Make "build_abe FOO" build FOO and make "build_abe check_FOO" run FOO's testsuites. This also makes tcwg_gnu's bisections more efficient, since we will ignore FOO's build problems in "check" configurations. Change-Id: I71c644e801828b94d880bed7fe440e4db3ffb40b
Diffstat (limited to 'round-robin.sh')
-rw-r--r--round-robin.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/round-robin.sh b/round-robin.sh
index e1fa13e7..957ce44c 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -248,11 +248,6 @@ build_abe ()
set -euf -o pipefail
local component="$1"
- local action_type="build"
-
- if [ x"${2-}" = x"check" ]; then
- action_type="check"
- fi
local project stage action check
check=false
@@ -260,16 +255,8 @@ build_abe ()
# Check if component starts with an action (eg. "check")
case "$component" in
check_*)
- component=${component#check_}
- if [ x$action_type = x"check" ]; then
- check=true
- fi
- ;;
- *)
- # For non-check configs, action_type=="check" should be nop
- if [ x$action_type = x"check" ]; then
- return
- fi
+ component="${component#check_}"
+ check=true
;;
esac