summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_env.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
index 22a22d1d53..035dbf5cac 100644
--- a/test/py/tests/test_env.py
+++ b/test/py/tests/test_env.py
@@ -39,7 +39,8 @@ class StateTestEnv(object):
Nothing.
"""
- if self.u_boot_console.config.buildconfig['config_version_variable'] == 'y':
+ if self.u_boot_console.config.buildconfig.get(
+ 'config_version_variable', 'n') == 'y':
with self.u_boot_console.disable_check('main_signon'):
response = self.u_boot_console.run_command('printenv')
else: