From: Mariano Lopez Date: Wed, 30 Nov 2016 16:48:21 +0000 (-0600) Subject: oeqa/utils/commands.py: Make a copy of variables in get_bb_vars X-Git-Tag: uninative-1.5~1175 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=22b7fa24fefcc3974806d1b282c93b8c5880f6a4;p=openembedded-core.git oeqa/utils/commands.py: Make a copy of variables in get_bb_vars The function get_bb_vars will remove items for the list passed as the function argument, this will leave the caller with an empty list and the function never says it will consume the items. This hasn't been found before because only get_bb_var uses this function. Signed-off-by: Mariano Lopez Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 5cd0f7477b..e00c8797aa 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py @@ -149,6 +149,7 @@ 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() var_re = re.compile(r'^(export )?(?P\w+)="(?P.*)"$') unset_re = re.compile(r'^unset (?P\w+)$') lastline = None