summaryrefslogtreecommitdiff
path: root/test/dfu/dfu_gadget_test.sh
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-07-01 12:16:55 -0600
committerTom Rini <trini@ti.com>2014-08-09 11:17:00 -0400
commitc0e6663b0ae7a4972a17348c8a1f6c0ebb67f5d1 (patch)
tree7547b2d01bdfdd2d45c62d92c11b38b99dfb4e71 /test/dfu/dfu_gadget_test.sh
parent90fadb57237268721da2ee038a6405fcb47b277a (diff)
downloadu-boot-imx-c0e6663b0ae7a4972a17348c8a1f6c0ebb67f5d1.zip
u-boot-imx-c0e6663b0ae7a4972a17348c8a1f6c0ebb67f5d1.tar.gz
u-boot-imx-c0e6663b0ae7a4972a17348c8a1f6c0ebb67f5d1.tar.bz2
test: dfu: cleanup before execution
Call cleanup() before running tests too. If a previous test was CTRL-C'd some stale files may have been left around. dfu-util refuses to receive a file to a filename that already exists, which results in false test failures if the files aren't cleaned up first. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'test/dfu/dfu_gadget_test.sh')
-rwxr-xr-xtest/dfu/dfu_gadget_test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dfu/dfu_gadget_test.sh b/test/dfu/dfu_gadget_test.sh
index c5c5f1d..4133155 100755
--- a/test/dfu/dfu_gadget_test.sh
+++ b/test/dfu/dfu_gadget_test.sh
@@ -66,6 +66,7 @@ printf "$COLOUR_GREEN===========================================================
echo "DFU EP0 transmission test program"
echo "Trouble shoot -> disable DBG (even the KERN_DEBUG) in the UDC driver"
echo "@ -> TRATS2 # dfu 0 mmc 0"
+cleanup
mkdir -p $DIR$RCV_DIR
touch $LOG_FILE