From 4eb079aaf3c2c270ed944072aa458d9998cc57b8 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Wed, 28 Jul 2021 18:32:45 +0000 Subject: tcwg-benchmark.sh: Do not reboot dev-02 machines for bare-metal benchmarking Change-Id: Ia71c4cfb1845b1e94293fb0b837f34cc44c58613 --- tcwg-benchmark.sh | 29 +++++++++++++++++++---------- 1 file 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)) -- cgit v1.2.3