test: py: Add cmd_echo dependency
authorMichal Simek <michal.simek@xilinx.com>
Mon, 15 May 2017 12:29:02 +0000 (14:29 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 22 May 2017 11:29:55 +0000 (07:29 -0400)
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>
test/py/tests/test_env.py
test/py/tests/test_shell_basics.py

index 035dbf5cac4c1d5c340214b58b9e5d52a0378de1..b7f960c755fe1d3ab581960f3156371be0cc97b8 100644 (file)
@@ -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."""
 
index 702e5e27e002c9fd59306f96927b505c56cf9bc1..0024d5f7f6194a0267ba4fc04ba124ac556f457c 100644 (file)
@@ -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."""