]> git.sur5r.net Git - u-boot/commit
test/py: ums: add filesystem-based testing
authorStephen Warren <swarren@nvidia.com>
Fri, 22 Jan 2016 19:30:13 +0000 (12:30 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 29 Jan 2016 04:01:23 +0000 (21:01 -0700)
commitd054f4c2cb56c49c04277cbc5be477c92baea25f
tree2b745291ead4479f959f821f3a7bf99dd5ee8ebb
parent76b4693928920d7c30fa935b3c46a02b637a29e1
test/py: ums: add filesystem-based testing

Enhance the UMS test to optionally mount a partition and read/write a file
to it, validating that the content written and read back are identical.

This enhancement is backwards-compatible; old boardenv contents that don't
define the new configuration data will cause the test code to perform as
before.

test/ums/ is deleted since the Python test now performs the same testing
that it did.

The code is also re-written to make use of the recently added utility
module, and split it up into nested functions so the overall logic of
the test process can be followed more easily without the details
cluttering the code.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_ums.py
test/ums/README [deleted file]
test/ums/ums_gadget_test.sh [deleted file]