Change-Id: I4c7d230df8719c708b5600266acad8c9c1bcf6cc
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
echo "Bmaptool: start"
test -b "${DEV_SDCARD}" || die "File does not exist or is not block special"
sudo bmaptool -q copy "${IMAGE}" "${DEV_SDCARD}"
+RET=$?
echo "Bmaptool: finish"
change_uuid "${UUID_FILE}" "${DEV_SDCARD}"
+if [ $RET -ne 0 ]; then
+ die "Bmaptool exited with an error" "$RET"
+fi
switch2device "${SDMUX}"
restart_device "${SDMUX}"
cd "${IMAGE_UNPACKED}"
${TESTLAB_SCRIPTS}/flash/flash_dd.sh "${DEV_SDCARD}"
+RET=$?
cd "${OLDPWD}"
change_uuid "${UUID_FILE}" "${DEV_SDCARD}"
+if [ $RET -ne 0 ]; then
+ die "flash_dd exited with an error" "$RET"
+fi
switch2device "${SDMUX}"
restart_device "${SDMUX}"