summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-12-11 18:40:49 -0500
committerTom Rini <trini@ti.com>2014-12-11 18:40:49 -0500
commitfc9b0b80435cda721fbdbe507c9e4f388b0ea62b (patch)
treee50527455a67f1fc9f793f42d9672b237ac806f7 /test
parent2c49323d5de38e119f102fa3f5fb291c4bc4e8a0 (diff)
parent0c6de8853b2571251fdefe34598e0c344fe1372b (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
Conflicts: board/freescale/mx6sxsabresd/mx6sxsabresd.c Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/ums/ums_gadget_test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/ums/ums_gadget_test.sh b/test/ums/ums_gadget_test.sh
index 56d46163760..9da486b266c 100755
--- a/test/ums/ums_gadget_test.sh
+++ b/test/ums/ums_gadget_test.sh
@@ -11,6 +11,7 @@ clear
COLOUR_RED="\33[31m"
COLOUR_GREEN="\33[32m"
+COLOUR_ORANGE="\33[33m"
COLOUR_DEFAULT="\33[0m"
DIR=./
@@ -59,8 +60,15 @@ ums_test_file () {
fi
cp ./$1 $MNT_DIR
- umount $MNT_DIR
+ while true; do
+ umount $MNT_DIR > /dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ break
+ fi
+ printf "$COLOUR_ORANGE\tSleeping to wait for umount...$COLOUR_DEFAULT\n"
+ sleep 1
+ done
echo -n "TX: "
calculate_md5sum $1