summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/commands.py
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:55:19 +0000
commit9d55e9d489cd78be592fb9b4d6484f9060c62fdd (patch)
tree9717eb412263a673a5fc6799192906f145ecc78f /meta/lib/oeqa/utils/commands.py
parent058891183e7669ce5c939c2c9a4b5422d5fa2956 (diff)
downloadpoky-9d55e9d489cd78be592fb9b4d6484f9060c62fdd.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. (From OE-Core rev: 22b7fa24fefcc3974806d1b282c93b8c5880f6a4) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-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):
149 """Get values of multiple bitbake variables""" 149 """Get values of multiple bitbake variables"""
150 bbenv = get_bb_env(target, postconfig=postconfig) 150 bbenv = get_bb_env(target, postconfig=postconfig)
151 151
152 variables = variables.copy()
152 var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$') 153 var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
153 unset_re = re.compile(r'^unset (?P<var>\w+)$') 154 unset_re = re.compile(r'^unset (?P<var>\w+)$')
154 lastline = None 155 lastline = None