|
@@ -34,11 +34,11 @@ def test_shell_semicolon_three(u_boot_console):
|
|
|
def test_shell_run(u_boot_console):
|
|
|
"""Test the "run" shell command."""
|
|
|
|
|
|
- u_boot_console.run_command('setenv foo "setenv monty 1; setenv python 2"')
|
|
|
+ u_boot_console.run_command('setenv foo \'setenv monty 1; setenv python 2\'')
|
|
|
u_boot_console.run_command('run foo')
|
|
|
- response = u_boot_console.run_command('echo $monty')
|
|
|
+ response = u_boot_console.run_command('echo ${monty}')
|
|
|
assert response.strip() == '1'
|
|
|
- response = u_boot_console.run_command('echo $python')
|
|
|
+ response = u_boot_console.run_command('echo ${python}')
|
|
|
assert response.strip() == '2'
|
|
|
u_boot_console.run_command('setenv foo')
|
|
|
u_boot_console.run_command('setenv monty')
|