Commit c0e6663b0ae7a4972a17348c8a1f6c0ebb67f5d1

Authored by Stephen Warren
Committed by Tom Rini
1 parent 90fadb5723

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

test/dfu/dfu_gadget_test.sh
... ... @@ -66,6 +66,7 @@
66 66 echo "DFU EP0 transmission test program"
67 67 echo "Trouble shoot -> disable DBG (even the KERN_DEBUG) in the UDC driver"
68 68 echo "@ -> TRATS2 # dfu 0 mmc 0"
  69 +cleanup
69 70 mkdir -p $DIR$RCV_DIR
70 71 touch $LOG_FILE
71 72