diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2016-11-30 10:48:21 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-13 22:47:26 +0000 |
commit | 22b7fa24fefcc3974806d1b282c93b8c5880f6a4 (patch) | |
tree | c11a86bc7738a7243d1f41487cd134b093db75f9 /meta/lib/oeqa/utils | |
parent | ba330051570a4c991885ee726cb187e0c911bd4f (diff) | |
download | openembedded-core-22b7fa24fefcc3974806d1b282c93b8c5880f6a4.tar.gz openembedded-core-22b7fa24fefcc3974806d1b282c93b8c5880f6a4.tar.bz2 openembedded-core-22b7fa24fefcc3974806d1b282c93b8c5880f6a4.zip |
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 <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 1 |
1 files changed, 1 insertions, 0 deletions
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<var>\w+)="(?P<value>.*)"$') unset_re = re.compile(r'^unset (?P<var>\w+)$') lastline = None |