summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index b743555c..0f0bff32 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -239,6 +239,7 @@ benchmark ()
[ "$build_num" -gt "0" ]
local build_status
+ local build_ret
while true; do
(remote_exec "ci.linaro.org:2222::-l $USER@linaro.org" \
console tcwg-benchmark-$hw -n 1 -f $build_num || true) \
@@ -248,7 +249,6 @@ benchmark ()
# to check whether benchmarking has finished, and, if not, continue
# to watch its output.
build_status=$(tail -n 1 $run_step_artifacts/benchmark.log)
- local build_ret
case "$build_status" in
"Finished: SUCCESS")
build_ret=0
@@ -258,6 +258,9 @@ benchmark ()
build_ret=1
break
;;
+ *)
+ assert_wth_msg "Unknown build status \"$build_status\"" false
+ ;;
esac
# Sleep a little to avoid flooding ci.linaro.org on transient ssh
@@ -267,9 +270,8 @@ benchmark ()
echo "$results_id" | sed -e "s/@build_num@/$build_num/g" \
> "$results_id_file"
- )
-
return $build_ret
+ )
}
# Compare results between $1 and $2 and generate results-compare.csv