u-boot-brain/test/py/tests
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
..
test_000_version.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
test_dfu.py test/py: dfu: error out if USB device already exists 2016-01-28 21:01:23 -07:00
test_env.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_help.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
test_hush_if_test.py test/py: test the shell if command 2016-01-20 19:06:23 -07:00
test_md.py test/py: move find_ram_base() into u_boot_utils 2016-01-28 21:01:23 -07:00
test_net.py test/py: add a networking test 2016-01-28 21:01:23 -07:00
test_sandbox_exit.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_shell_basics.py test/py: add test of basic shell functionality 2016-01-20 19:06:23 -07:00
test_sleep.py test/py: move U-Boot respawn trigger to the test core 2016-01-28 21:01:22 -07:00
test_ums.py test/py: ums: add filesystem-based testing 2016-01-28 21:01:23 -07:00
test_unknown_cmd.py test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00