aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-11-30 10:48:21 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-13 22:47:26 +0000
commit22b7fa24fefcc3974806d1b282c93b8c5880f6a4 (patch)
treec11a86bc7738a7243d1f41487cd134b093db75f9
parentba330051570a4c991885ee726cb187e0c911bd4f (diff)
downloadopenembedded-core-contrib-22b7fa24fefcc3974806d1b282c93b8c5880f6a4.tar.gz
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>
-rw-r--r--meta/lib/oeqa/utils/commands.py1
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