summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa
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:14:59 +0000
commit91f856426c7523e1ebdf6d6f93f5fa7e509d6e49 (patch)
tree0f2f7d2e4f063f78047dd929e820ff39971579ae /meta/lib/oeqa
parent16afda66b861ba028c1152dcdcab2b7ebfbff965 (diff)
downloadopenembedded-core-91f856426c7523e1ebdf6d6f93f5fa7e509d6e49.tar.gz
openembedded-core-91f856426c7523e1ebdf6d6f93f5fa7e509d6e49.tar.bz2
openembedded-core-91f856426c7523e1ebdf6d6f93f5fa7e509d6e49.zip
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. 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')
-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):
"""Get values of multiple bitbake variables"""
bbenv = get_bb_env(target, postconfig=postconfig)
- variables = variables.copy()
+ if variables is not None:
+ variables = variables.copy()
var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
unset_re = re.compile(r'^unset (?P<var>\w+)$')
lastline = None