diff options
author | Kevin Hilman <khilman@baylibre.com> | 2020-04-28 13:16:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 13:16:25 -0700 |
commit | 9596a7d56f8e4b6653ae1735075b3fc95b268fe9 (patch) | |
tree | de984a68d4cb6eaa0f91aedf68b7a2fe4ba5330f /lava-slave/scripts/setup.sh | |
parent | 8510b8144b8ca5a17ce956ee447fed4cd1c95e7b (diff) | |
parent | 45ef46bfd2fdc5581541b0225fafb4b181da379c (diff) |
Merge pull request #116 from montjoie/misc-04-2020
Misc 04 2020
Diffstat (limited to 'lava-slave/scripts/setup.sh')
-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/) |