]> git.baikalelectronics.ru Git - uboot.git/commit
test: env: add test for env info sub-command
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 19 Jun 2020 12:03:37 +0000 (14:03 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 26 Jul 2020 18:35:30 +0000 (14:35 -0400)
commitacb1d1438d2f236f2658e75679416a8a523a7c6c
treecf310d305d76b90fae3128e7489a1671a02467cb
parent8661f70bad8fd3942dc557a9f8cda51d77d431f0
test: env: add test for env info sub-command

Add a pytest for testing the env info sub-command:

test_env_info: test command with several option that
can be executed on real hardware device without assumption

test_env_info_sandbox: test the result on sandbox
with a known ENV configuration: ready & default & persistent

The quiet option '-q' is used for support in shell test;
for example:
  if env info -p -d -q; then env save; fi

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
test/py/tests/test_env.py