[U-Boot] [PATCH v2 2/2] test: py: hush: Add echo dependency

Michal Simek michal.simek at xilinx.com
Thu May 18 07:23:15 UTC 2017


Some tests depends on echo command to be present.

Reported-by: Stephen Warren <swarren at nvidia.com>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

Changes in v2:
- New patch in this series
- Tested on sandbox

 test/py/tests/test_hush_if_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/py/tests/test_hush_if_test.py b/test/py/tests/test_hush_if_test.py
index 056a2880303e..c8f4208d3105 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')
 
+ at 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.
+ at 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."""
-- 
1.9.1



More information about the U-Boot mailing list