mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
test: hush: Test hush variable expansion
Verifies shell variables are replaced by their values. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
This commit is contained in:
parent
4dc305f95b
commit
261d29e2f3
3 changed files with 175 additions and 1 deletions
|
@ -500,5 +500,11 @@ def test_ut(u_boot_console, ut_subtest):
|
|||
execute command 'ut foo bar'
|
||||
"""
|
||||
|
||||
output = u_boot_console.run_command('ut ' + ut_subtest)
|
||||
if ut_subtest == 'hush hush_test_simple_dollar':
|
||||
# ut hush hush_test_simple_dollar prints "Unknown command" on purpose.
|
||||
with u_boot_console.disable_check('unknown_command'):
|
||||
output = u_boot_console.run_command('ut ' + ut_subtest)
|
||||
assert('Unknown command \'quux\' - try \'help\'' in output)
|
||||
else:
|
||||
output = u_boot_console.run_command('ut ' + ut_subtest)
|
||||
assert output.endswith('Failures: 0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue