From 9d55e9d489cd78be592fb9b4d6484f9060c62fdd Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Wed, 30 Nov 2016 10:48:21 -0600 Subject: 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. (From OE-Core rev: 22b7fa24fefcc3974806d1b282c93b8c5880f6a4) Signed-off-by: Mariano Lopez Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/utils/commands.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/lib/oeqa') 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 -- cgit v1.2.3-54-g00ecf