diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-09-10 12:09:03 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-11 17:13:56 -0400 |
commit | ffda78fbb3e07e48ac7b04606a5b729ad7f3e88c (patch) | |
tree | 23be01896a73f305a622644792e77d49f7e55f3a | |
parent | 2a981807bd61e612273ddb54435af2a4521fa5ee (diff) | |
download | u-boot-WIP/2020-09-11-assorted-bugfixes.tar.gz |
test: do no assume hush parser in validate_empty()WIP/2020-09-11-assorted-bugfixes
The environment variable test uses function validate_empty() to check that
a variable is not defined. If the hush parser is not enabled, we cannot
refer to a variable by $var_name but only by ${var_name}.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | test/py/tests/test_env.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py index 2ae8f25381..940279651d 100644 --- a/test/py/tests/test_env.py +++ b/test/py/tests/test_env.py @@ -151,7 +151,7 @@ def validate_empty(state_test_env, var): Nothing. """ - response = state_test_env.u_boot_console.run_command('echo $%s' % var) + response = state_test_env.u_boot_console.run_command('echo ${%s}' % var) assert response == '' def validate_set(state_test_env, var, value): |