]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
test: dfu: cleanup before execution
authorStephen Warren <swarren@nvidia.com>
Tue, 1 Jul 2014 18:16:55 +0000 (12:16 -0600)
committerTom Rini <trini@ti.com>
Sat, 9 Aug 2014 15:17:00 +0000 (11:17 -0400)
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>
test/dfu/dfu_gadget_test.sh

index c5c5f1d957f148ea341459c520f4efee5dbfdcd8..4133155ae97dc7657e96b6a4d96f826a5da4e668 100755 (executable)
@@ -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