summaryrefslogtreecommitdiff
path: root/tct
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-12-16 10:36:10 +0100
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-02-01 17:36:51 +0100
commit1a0b5fa022240e978276c6daa91bfddb1a1547db (patch)
tree0285e3dfcdfdbfc5ea393dfbf62fb114d84eda23 /tct
parented4f85c0245ccbeae3394cf0bf149f80c197ba2d (diff)
downloadmajor-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-xtct/common.sh2
-rwxr-xr-xtct/minnow_prepare_flash_conf.sh2
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"