mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 15:28:50 +00:00
test: py: Add cmd_echo dependency
There is missing dependency on echo command. Mark tests which requires echo. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
0680f1b1f7
commit
6b83c38d7a
2 changed files with 7 additions and 0 deletions
|
@ -164,6 +164,7 @@ def test_env_echo_exists(state_test_env):
|
||||||
value = state_test_env.env[var]
|
value = state_test_env.env[var]
|
||||||
validate_set(state_test_env, var, value)
|
validate_set(state_test_env, var, value)
|
||||||
|
|
||||||
|
@pytest.mark.buildconfigspec('cmd_echo')
|
||||||
def test_env_echo_non_existent(state_test_env):
|
def test_env_echo_non_existent(state_test_env):
|
||||||
"""Test echoing a variable that doesn't exist."""
|
"""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)
|
response = c.run_command('printenv %s' % var)
|
||||||
assert(response == '## Error: "%s" not defined' % var)
|
assert(response == '## Error: "%s" not defined' % var)
|
||||||
|
|
||||||
|
@pytest.mark.buildconfigspec('cmd_echo')
|
||||||
def test_env_unset_non_existent(state_test_env):
|
def test_env_unset_non_existent(state_test_env):
|
||||||
"""Test unsetting a nonexistent variable."""
|
"""Test unsetting a nonexistent variable."""
|
||||||
|
|
||||||
|
@ -202,6 +204,7 @@ def test_env_set_existing(state_test_env):
|
||||||
set_var(state_test_env, var, value)
|
set_var(state_test_env, var, value)
|
||||||
validate_set(state_test_env, var, value)
|
validate_set(state_test_env, var, value)
|
||||||
|
|
||||||
|
@pytest.mark.buildconfigspec('cmd_echo')
|
||||||
def test_env_unset_existing(state_test_env):
|
def test_env_unset_existing(state_test_env):
|
||||||
"""Test unsetting a variable."""
|
"""Test unsetting a variable."""
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
|
|
||||||
# Test basic shell functionality, such as commands separate by semi-colons.
|
# 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):
|
def test_shell_execute(u_boot_console):
|
||||||
"""Test any shell command."""
|
"""Test any shell command."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue