[oe-commits] [openembedded-core] branch master updated: oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments

git at git.openembedded.org git at git.openembedded.org
Wed Dec 14 16:15:33 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

The following commit(s) were added to refs/heads/master by this push:
       new  91f8564   oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments
91f8564 is described below

commit 91f856426c7523e1ebdf6d6f93f5fa7e509d6e49
Author: Mariano Lopez <mariano.lopez at linux.intel.com>
AuthorDate: Wed Dec 14 07:45:21 2016 +0000

    oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments
    
    Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars()
    when called without arguments. This fix this issue.
    
    Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/utils/commands.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 6acb24a..aecf8cf 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -149,7 +149,8 @@ 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()
+    if variables is not None:
+        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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list