u-boot-brain/test
Stephen Warren be1df82656 test/py: dfu: error out if USB device already exists
The DFU test requests U-Boot configure its USB controller in device mode,
then waits for the host machine to enumerate the USB device and create a
device node for it. However, this wait can be fooled if the USB device
node already exists before the test starts, e.g. if some previous software
stack already configured the USB controller into device mode and never
de-configured it. This "previous software stack" could even be another
test/py test, if U-Boot's own USB teardown does not operate correctly. If
this happens, dfu-util may be run before U-Boot is ready to serve DFU
commands, which may cause false test failures.

Enhance the dfu test to fail if the device node exists before it is
expected to.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-01-28 21:01:23 -07:00
..
dm dm: syscon: Allow finding devices by driver data 2016-01-24 12:07:19 +08:00
env test: env: Add a test of the new regex behavior for attrs 2015-05-21 09:16:18 -04:00
fs test/fs: error case fixes/enhancements 2016-01-13 21:05:21 -05:00
image add test for two 'loadables' 2015-05-28 08:18:21 -04:00
py test/py: dfu: error out if USB device already exists 2016-01-28 21:01:23 -07:00
stdint test: Add a simple test to detected warnings with uint64_t, uintptr_t 2014-10-27 11:04:01 -04:00
trace test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
vboot Implement generalised RSA public exponents for verified boot 2014-08-09 11:17:01 -04:00
cmd_ut.c test: env: Add test framework for env 2015-05-21 09:16:18 -04:00
command_ut.c test/py: test the shell if command 2016-01-20 19:06:23 -07:00
common.sh test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
compression.c Add support for LZ4 decompression algorithm 2015-10-11 17:12:10 -04:00
Kconfig test: env: Add test framework for env 2015-05-21 09:16:18 -04:00
Makefile test: dm: Move the time test over to the ut command 2015-05-21 09:16:17 -04:00
time_ut.c test: dm: Move the time test over to the ut command 2015-05-21 09:16:17 -04:00
ut.c test: Record and silence console in tests 2015-11-19 20:27:51 -07:00