All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] test: dfu: cleanup before execution
@ 2014-07-01 18:16 Stephen Warren
  2014-07-01 18:16 ` [U-Boot] [PATCH 2/3] test: dfu: add some more test cases Stephen Warren
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stephen Warren @ 2014-07-01 18:16 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/dfu/dfu_gadget_test.sh b/test/dfu/dfu_gadget_test.sh
index c5c5f1d957f1..4133155ae97d 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
 
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-08  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01 18:16 [U-Boot] [PATCH 1/3] test: dfu: cleanup before execution Stephen Warren
2014-07-01 18:16 ` [U-Boot] [PATCH 2/3] test: dfu: add some more test cases Stephen Warren
2014-07-08  7:58   ` Lukasz Majewski
2014-07-01 18:16 ` [U-Boot] [PATCH 3/3] dfu: fix readback buffer overflow test Stephen Warren
2014-07-08  7:58   ` Lukasz Majewski
2014-07-08  7:57 ` [U-Boot] [PATCH 1/3] test: dfu: cleanup before execution Lukasz Majewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.