summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-05-27 14:40:58 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-05-27 14:44:44 +0000
commit606fe7b4f7dbe40d7a50d37bdb00fa4a2b850210 (patch)
treefe93ed2eccf2d7186c49f983cd57d42ce6fe91ff
parentaf9262135bda922d52e2c36bafcc21b9f96897a2 (diff)
tcwg_bmk-build.sh: Fix loop waiting for benchmarking to finish
Remote_exec can exit before tcwg-benchmark-$hw job finishes, and that's the reason why we loop until we see "Finished: " on the job's console log. Change-Id: Ib579a48e6a1e1f20d9f6d748efcf693df27d5c20
-rwxr-xr-xtcwg_bmk-build.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 0f0bff32..f750893a 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -90,7 +90,7 @@ case "${rr[toolchain]}" in
rr[components]="binutils gcc glibc llvm" ;;
gnu)
rr[components]="binutils gcc glibc" ;;
- *) assert_wth_msg "Unkown toolchain \"${rr[toolchain]}\"" false ;;
+ *) assert_with_msg "Unknown toolchain \"${rr[toolchain]}\"" false ;;
esac
# Use baseline branches by default.
@@ -235,7 +235,7 @@ benchmark ()
local build_num
build_num=$(cat $run_step_artifacts/benchmark-start.log \
| sed -e "s/.*#\([0-9]\+\).*/\1/")
- assert_with_msg "Benchamark build number should not be 0!" \
+ assert_with_msg "Benchmark build number should not be 0!" \
[ "$build_num" -gt "0" ]
local build_status
@@ -258,9 +258,6 @@ 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