aboutsummaryrefslogtreecommitdiff
path: root/test/py/tests
diff options
context:
space:
mode:
authorHeiko Schocher2016-06-07 08:31:15 +0200
committerTom Rini2016-06-09 13:53:05 -0400
commitda37f006e7c58860d03946b6387394b1ab9c13a4 (patch)
treeaba1b5641a5f138d98c64eeb0822d85f42c707b1 /test/py/tests
parentbb597c0eeb7ee2f6e983577d993c76a30dd3c2b4 (diff)
tests: py: disable main_signon check for printenv cmd
if CONFIG_VERSION_VARIABLE is set, the U-Boot environment contains a "vers" variable with the current U-Boot version string. If now "printenv" is called, test/py fails as it detects the main_sign string, which is in this case correct. So check only the main_sign as an error, if CONFIG_VERSION_VARIABLE is not set. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'test/py/tests')
-rw-r--r--test/py/tests/test_env.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
index c41aa5a9d9c..22a22d1d538 100644
--- a/test/py/tests/test_env.py
+++ b/test/py/tests/test_env.py
@@ -39,7 +39,11 @@ class StateTestEnv(object):
Nothing.
"""
- response = self.u_boot_console.run_command('printenv')
+ if self.u_boot_console.config.buildconfig['config_version_variable'] == 'y':
+ with self.u_boot_console.disable_check('main_signon'):
+ response = self.u_boot_console.run_command('printenv')
+ else:
+ response = self.u_boot_console.run_command('printenv')
self.env = {}
for l in response.splitlines():
if not '=' in l: