diff options
author | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2016-12-16 10:36:10 +0100 |
---|---|---|
committer | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2017-02-01 17:36:51 +0100 |
commit | 1a0b5fa022240e978276c6daa91bfddb1a1547db (patch) | |
tree | 0285e3dfcdfdbfc5ea393dfbf62fb114d84eda23 /tct | |
parent | ed4f85c0245ccbeae3394cf0bf149f80c197ba2d (diff) | |
download | major-1a0b5fa022240e978276c6daa91bfddb1a1547db.tar.gz major-1a0b5fa022240e978276c6daa91bfddb1a1547db.tar.bz2 major-1a0b5fa022240e978276c6daa91bfddb1a1547db.zip |
Add timeout to tct/minnow_prepare_flash_conf.sh
Change-Id: Ie212cf0b669c31070e9b584678da9a22e17bc608
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tct')
-rwxr-xr-x | tct/common.sh | 2 | ||||
-rwxr-xr-x | tct/minnow_prepare_flash_conf.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tct/common.sh b/tct/common.sh index ba5a1ff..38477a8 100755 --- a/tct/common.sh +++ b/tct/common.sh @@ -37,6 +37,8 @@ TL_IP_CONF="/etc/opt/testlab-major/ip_addr" SCREENSHOOTER_RPM="/opt/screenshooter.rpm" ARTIK_FLASH_SCRIPT="/opt/sdboot/mk_sdboot.sh" +BMAP_TIME_LIMIT="600" + get_ip() { SDMUX="$1" test -n "${SDMUX}" || die "Missing argument: sdmux!" diff --git a/tct/minnow_prepare_flash_conf.sh b/tct/minnow_prepare_flash_conf.sh index cf271f4..da3a718 100755 --- a/tct/minnow_prepare_flash_conf.sh +++ b/tct/minnow_prepare_flash_conf.sh @@ -50,7 +50,7 @@ DEV_SDCARD=$(uuid2dev "${UUID_FILE}" "${SDMUX}") || die "sdcard not found!" echo "Bmaptool: start" test -b "${DEV_SDCARD}" || die "File does not exist or is not block special" -sudo bmaptool -q copy "${IMAGE}" "${DEV_SDCARD}" +sudo timeout "${BMAP_TIME_LIMIT}" bmaptool -q copy "${IMAGE}" "${DEV_SDCARD}" RET=$? echo "Bmaptool: finish" |