From: Mariano Lopez Date: Wed, 14 Dec 2016 07:45:21 +0000 (+0000) Subject: oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f856426c7523e1ebdf6d6f93f5fa7e509d6e49;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 6acb24a2b7d..aecf8cf5a8c 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\w+)="(?P.*)"$') unset_re = re.compile(r'^unset (?P\w+)$') lastline = None