diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2020-03-04 14:20:55 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2020-04-27 11:13:20 +0200 |
commit | 4022cf657c2618f1d03c4ce3ef32b279d0bc64e0 (patch) | |
tree | ef0422b7420ea4cac986b3d81df61040c94746fd | |
parent | 8510b8144b8ca5a17ce956ee447fed4cd1c95e7b (diff) |
increase timeout when waiting for master
-rwxr-xr-x | lava-slave/scripts/setup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lava-slave/scripts/setup.sh b/lava-slave/scripts/setup.sh index c39fdc4..58672c3 100755 --- a/lava-slave/scripts/setup.sh +++ b/lava-slave/scripts/setup.sh @@ -22,7 +22,7 @@ echo "Dynamic slave for $LAVA_MASTER ($LAVA_MASTER_URI)" LAVACLIOPTS="--uri $LAVA_MASTER_URI" # do a sort of ping for letting master to be up -TIMEOUT=300 +TIMEOUT=1200 while [ $TIMEOUT -ge 1 ]; do STEP=2 @@ -30,7 +30,7 @@ do if [ $? -eq 0 ];then TIMEOUT=0 else - echo "Wait for master...." + echo "Wait for master.... (${TIMEOUT}s remains)" sleep $STEP fi TIMEOUT=$(($TIMEOUT-$STEP)) @@ -50,10 +50,12 @@ fi lavacli $LAVACLIOPTS device-types list > /tmp/device-types.list if [ $? -ne 0 ];then + echo "ERROR: fail to list device-types" exit 1 fi lavacli $LAVACLIOPTS devices list -a > /tmp/devices.list if [ $? -ne 0 ];then + echo "ERROR: fail to list devices" exit 1 fi for worker in $(ls /root/devices/) |