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)
commitacbf93b52695431b683d2665120707a3f52d6b4b
treecf310d305d76b90fae3128e7489a1671a02467cb
parent7d813449b8f266bb9e2261e3f175748f5319fda2
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