summaryrefslogtreecommitdiff
path: root/tct/odroid_prepare_flash_conf.sh
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-08-22 11:22:56 +0200
committerAleksander Mistewicz <a.mistewicz@samsung.com>2016-12-06 16:37:14 +0100
commit69441298e91b8d7c91d3eb9ff1ff4d0a64dd47f4 (patch)
tree5e5d373e4ff1c869766b9732a3a5dddab3c0f126 /tct/odroid_prepare_flash_conf.sh
parent20f2ddd2a200e0d0c2ca44d517287ee185b60580 (diff)
downloadmajor-69441298e91b8d7c91d3eb9ff1ff4d0a64dd47f4.tar.gz
major-69441298e91b8d7c91d3eb9ff1ff4d0a64dd47f4.tar.bz2
major-69441298e91b8d7c91d3eb9ff1ff4d0a64dd47f4.zip
Unify odroid and minnow sleep values
Sleep values are now stored in: tct/common.sh Test results are now comparable. Change-Id: I32b08ae0b959b01d417665e8b0c487d09917d4f4 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tct/odroid_prepare_flash_conf.sh')
-rwxr-xr-xtct/odroid_prepare_flash_conf.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/tct/odroid_prepare_flash_conf.sh b/tct/odroid_prepare_flash_conf.sh
index 5a2d4b2..ed74a29 100755
--- a/tct/odroid_prepare_flash_conf.sh
+++ b/tct/odroid_prepare_flash_conf.sh
@@ -73,22 +73,24 @@ echo "### conf ###"
CONNECT_CNT=0
sdb start-server
-SLEEP=10
+SLEEP=${INIT_SLEEP}
+
+sleep "${SLEEP}"
while [ -z "$(sdb devices | awk -v SDMUX="${SDMUX}" '$1 == SDMUX {print $1}')" ]
do
printf "."
- if [ ${SLEEP} -ge 120 ]
+ if [ ${SLEEP} -ge ${MAX_SLEEP} ]
then
die "Timeout: sdb device not found!" >&2
fi
- if [ ${SLEEP} -ge 60 ]
+ if [ ${SLEEP} -ge ${RESTART_SLEEP} ]
then
echo "Restarting ODROID" >&2
restart_device "${SDMUX}"
fi
sleep "${SLEEP}"
- SLEEP=$((SLEEP+10))
+ SLEEP=$((SLEEP+INC_SLEEP))
CONNECT_CNT=$((CONNECT_CNT+1))
done