diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-07-08 09:30:04 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-07-08 09:31:17 +0000 |
commit | 99e51ec40ff7601a9bba3709f0cf7217b11eaec3 (patch) | |
tree | 42156a8860707e70f7c027927b83b90bf0f23b3a | |
parent | 995b537d90d65c2f876ed74d1eb432adc620337e (diff) |
tcwg-benchmark.sh: Move power-cycling code here from .yaml files
Change-Id: I8c6ec7118f9015fa3ad3ea8c344fb66b5bf9a357
-rwxr-xr-x | tcwg-benchmark.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index 6f0c65f7..6183b736 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -229,7 +229,16 @@ case "$hw_tag" in ;; esac -rsync -az --delete bmk-scripts/ "$boardname:bmk-scripts/" +if ! ssh "$boardname" true; then + echo "Trying to power-cycle $boardname" + ( + nvidia-power-cycle.sh "${boardname%.tcwglab}" + wait_for_ssh_server "$boardname" 22 100 + ) & + wait $! || exit 125 + echo "Successfull powered-cycled $boardname" + reboot=false +fi if $reboot; then # Reboot the board @@ -244,6 +253,8 @@ if $reboot; then fi fi +rsync -az --delete bmk-scripts/ "$boardname:bmk-scripts/" + case "$testmode" in build|verify) input_size="test" ;; benchmark) input_size="ref" ;; |