summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-28 18:32:45 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-28 18:32:45 +0000
commit4eb079aaf3c2c270ed944072aa458d9998cc57b8 (patch)
tree5a992806102b6a5ed875dbc86d44fda4e9b7f89a
parenta6cf674df0e97fa9eca9608299c360e6d9dd11b4 (diff)
tcwg-benchmark.sh: Do not reboot dev-02 machines for bare-metal benchmarking
Change-Id: Ia71c4cfb1845b1e94293fb0b837f34cc44c58613
-rwxr-xr-xtcwg-benchmark.sh29
1 files changed, 19 insertions, 10 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index ca611bc7..6c534f04 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -238,6 +238,7 @@ hw_tag="${results_id%%/*}"
case "$hw_tag:$boardname:$image_arch" in
sq_32:*-sq-*:armhf) ;;
sq_64:*-sq-*:arm64) ;;
+ stm32:dev-*:amd64) ;;
tk1_32:*-tk1-*:armhf) ;;
tx1_64:*-tx1-*:arm64) ;;
tx1_32:*-tx1-*:armhf) ;;
@@ -250,16 +251,24 @@ esac
# Check that we can ssh to the board and rsync scripts. This ensures that
# the board is online and filesystem is good condition. Try to reboot and/or
# power-cycle the board as needed.
-if $reboot; then
- # 1. Try access after soft reboot
- # 2. Try access after power-cycle
- tries_left=2
-else
- # 1. Try access without rebooting
- # 2. Try access after soft reboot
- # 3. Try access after power-cycle
- tries_left=3
-fi
+case "$hw_tag:$reboot" in
+ stm32:*)
+ # 1. If the host machine isn't available on the 1st try -- give up.
+ reboot=false
+ tries_left=1
+ ;;
+ *:true)
+ # 1. Try access after soft reboot
+ # 2. Try access after power-cycle
+ tries_left=2
+ ;;
+ *)
+ # 1. Try access without rebooting
+ # 2. Try access after soft reboot
+ # 3. Try access after power-cycle
+ tries_left=3
+ ;;
+esac
force_power_cycle=false
while [ $tries_left != 0 ]; do
tries_left=$(($tries_left-1))