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

Tim.Bird at sony.com Tim.Bird at sony.com
Wed Jun 6 01:33:02 UTC 2018



> -----Original Message-----
> From: Daniel Sangorrin
> 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

Hmmm.  I can't find any other uses of this variable.  Maybe
in the distant past it got refactored out.  But it's nice to add
back in functionality that is supposed to be there.  Though
a little embarrassing that we haven't noticed until now.
Maybe we don't use this very often.

Thanks!  Applied.
 -- Tim



More information about the Fuego mailing list