summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-05-18 09:23:15 +0200
committerTom Rini <trini@konsulko.com>2017-06-05 14:13:02 -0400
commit5bdb31706509c0dbf44228fc69538e90cc7d510e (patch)
tree1953266b5a10e888816a10b00682ad3f08b40a03 /test
parenta5b548138b7356dbacc41ae5100dfda5200ea90b (diff)
test: py: hush: Add echo dependency
Some tests depends on echo command to be present. Reported-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_hush_if_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/tests/test_hush_if_test.py b/test/py/tests/test_hush_if_test.py
index 056a288030..c8f4208d31 100644
--- a/test/py/tests/test_hush_if_test.py
+++ b/test/py/tests/test_hush_if_test.py
@@ -117,6 +117,7 @@ def test_hush_if_test_setup(u_boot_console):
u_boot_console.run_command('setenv ut_var_nonexistent')
u_boot_console.run_command('setenv ut_var_exists 1')
+@pytest.mark.buildconfigspec('cmd_echo')
@pytest.mark.parametrize('expr,result', subtests)
def test_hush_if_test(u_boot_console, expr, result):
"""Test a single "if test" condition."""
@@ -130,6 +131,7 @@ def test_hush_if_test_teardown(u_boot_console):
# We might test this on real filesystems via UMS, DFU, 'save', etc.
# Of those, only UMS currently allows file removal though.
+@pytest.mark.buildconfigspec('cmd_echo')
@pytest.mark.boardspec('sandbox')
def test_hush_if_test_host_file_exists(u_boot_console):
"""Test the "if test -e" shell command."""