summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-05-15 14:29:02 +0200
committerTom Rini <trini@konsulko.com>2017-05-22 07:29:55 -0400
commit6b83c38d7a195f0e93cd6ff069a69105cb59a091 (patch)
tree8f6a7d5b1b9e8944c955567008e603f36432abed /test
parent0680f1b1f7629c49d88d8981e164ab9bb0ad8d68 (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_env.py3
-rw-r--r--test/py/tests/test_shell_basics.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
index 035dbf5cac..b7f960c755 100644
--- a/test/py/tests/test_env.py
+++ b/test/py/tests/test_env.py
@@ -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)
+@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)
+@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)
+@pytest.mark.buildconfigspec('cmd_echo')
def test_env_unset_existing(state_test_env):
"""Test unsetting a variable."""
diff --git a/test/py/tests/test_shell_basics.py b/test/py/tests/test_shell_basics.py
index 702e5e27e0..0024d5f7f6 100644
--- a/test/py/tests/test_shell_basics.py
+++ b/test/py/tests/test_shell_basics.py
@@ -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."""