[U-Boot] [PATCH V2 7/8] test/py: ums: add filesystem-based testing

Simon Glass sjg at chromium.org
Fri Jan 22 21:14:51 CET 2016


On 22 January 2016 at 12:30, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> 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 at nvidia.com>
> Acked-by: Lukasz Majewski <l.majewski at samsung.com>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
> v2: Fix file-level and function-level comment to describe the enhanced
> test more fully.
> ---
>  test/py/tests/test_ums.py   | 236 +++++++++++++++++++++++++++++++++++---------
>  test/ums/README             |  30 ------
>  test/ums/ums_gadget_test.sh | 183 ----------------------------------
>  3 files changed, 188 insertions(+), 261 deletions(-)
>  delete mode 100644 test/ums/README
>  delete mode 100755 test/ums/ums_gadget_test.sh

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list