[Fuego] [PATCH 03/30] reboot: reboot the board if reboot flag is set to true

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Mon Jun 4 07:17:37 UTC 2018


Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/scripts/functions.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/engine/scripts/functions.sh b/engine/scripts/functions.sh
index 7d1cdac..654a1ee 100755
--- a/engine/scripts/functions.sh
+++ b/engine/scripts/functions.sh
@@ -413,6 +413,10 @@ function target_setup_route_to_host () {
 }
 
 function pre_test {
+    if [ "$Reboot" == "true" ]; then
+        target_reboot ${MAX_REBOOT_RETRIES:-20}
+    fi
+
     # Make sure the target is alive, and prepare workspace for the test
     source $FUEGO_RO/toolchains/tools.sh
     export SSHPASS=$PASSWORD
-- 
2.7.4




More information about the Fuego mailing list