]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: py: hush: Add echo dependency
authorMichal Simek <michal.simek@xilinx.com>
Thu, 18 May 2017 07:23:15 +0000 (09:23 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:02 +0000 (14:13 -0400)
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>
test/py/tests/test_hush_if_test.py

index 056a2880303eef904a9914ca324c8560cd95fae3..c8f4208d31054f1f20432d61bc674b5e9e4da800 100644 (file)
@@ -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."""