test: py: Add cmd_echo dependency
PATCH v2 1/1 test: py: Add cmd_echo dependency
There is missing dependency on echo command. Mark tests which requires echo.
---
Changes in v2:
- Removed incorrect dependency on echo command
- Add empty line before header and module import
- Mark the whole file with global pytestmark - all reported by Stephen
test/py/tests/test_env.py | 3 +++ test/py/tests/test_shell_basics.py | 4 ++++ 2 files changed, 7 insertions(+)
test/py/tests/test_env.py +3 -0
@@ -164,6 +164,7 @@ def test_env_echo_exists(state_test_env): value = state_test_env.env[var] validate_set(state_test_env, var, value) + at pytest.mark.buildconfigspec('cmd_echo') def test_env_echo_non_existent(state_test_env): """Test echoing a variable that doesn't exist."""
@@ -179,6 +180,7 @@ def test_env_printenv_non_existent(state_test_env): response = c.run_command('printenv %s' % var) assert(response == '## Error: "%s" not defined' % var) + at pytest.mark.buildconfigspec('cmd_echo') def test_env_unset_non_existent(state_test_env): """Test unsetting a nonexistent variable."""
@@ -202,6 +204,7 @@ def test_env_set_existing(state_test_env): set_var(state_test_env, var, value) validate_set(state_test_env, var, value) + at pytest.mark.buildconfigspec('cmd_echo') def test_env_unset_existing(state_test_env): """Test unsetting a variable."""
test/py/tests/test_shell_basics.py +4 -0
@@ -4,6 +4,10 @@ # Test basic shell functionality, such as commands separate by semi-colons. +import pytest + +pytestmark = pytest.mark.buildconfigspec('cmd_echo') + def test_shell_execute(u_boot_console): """Test any shell command."""
Signature · 1 line
1.9.1
PATCH v2 1/1 test: py: Add cmd_echo dependency
Quoted 2 lines · Michal Simek
There is missing dependency on echo command. Mark tests which requires echo.
It'd be good to update test_hush_if_test.py too though, even if separately.
PATCH v2 1/1 test: py: Add cmd_echo dependency
Quoted 7 lines · Stephen Warren
Quoted 2 lines · Michal Simek
There is missing dependency on echo command. Mark tests which requires echo.
Reviewed-by Stephen Warren <[email protected]>It'd be good to update
test_hush_if_test.pytoo though, even if separately.
I have sent patch for that please review.
Thanks,
Michal
PATCH v2 1/1 test: py: Add cmd_echo dependency
In reply to Michal SimekQuoted 5 lines · Michal Simek
There is missing dependency on echo command. Mark tests which requires echo.
Signed-off-by Michal Simek <[email protected]>Reviewed-by Stephen Warren <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170522/d51f1f56/attachment.sig>