summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-12-14 07:45:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-14 16:15:04 +0000
commita92d27acd8f42b61a2fc575311838b45d171f0af (patch)
treebe55c30f8ae5f4a464cf3e8a38d65c9737f636f8 /meta/lib/oeqa/utils
parent66adb6bdf72a256a0bed6077cdfa4c61ee7919e5 (diff)
downloadpoky-a92d27acd8f42b61a2fc575311838b45d171f0af.tar.gz
oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments
Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars() when called without arguments. This fix this issue. (From OE-Core rev: 91f856426c7523e1ebdf6d6f93f5fa7e509d6e49) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 6acb24a2b7..aecf8cf5a8 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -149,7 +149,8 @@ def get_bb_vars(variables=None, target=None, postconfig=None):
149 """Get values of multiple bitbake variables""" 149 """Get values of multiple bitbake variables"""
150 bbenv = get_bb_env(target, postconfig=postconfig) 150 bbenv = get_bb_env(target, postconfig=postconfig)
151 151
152 variables = variables.copy() 152 if variables is not None:
153 variables = variables.copy()
153 var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$') 154 var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
154 unset_re = re.compile(r'^unset (?P<var>\w+)$') 155 unset_re = re.compile(r'^unset (?P<var>\w+)$')
155 lastline = None 156 lastline = None