[OE-core] [PATCH 4/5] lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
Paul Eggleton
paul.eggleton at linux.intel.com
Wed Jun 17 17:23:26 UTC 2015
Only split on the first equals character so that values that contain
equals characters (such as FAKEROOTENV) can be retrieved.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
meta/lib/oeqa/utils/commands.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index dc8a983..1be7bed 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -141,7 +141,7 @@ def get_bb_var(var, target=None, postconfig=None):
lastline = None
for line in bbenv.splitlines():
if re.search("^(export )?%s=" % var, line):
- val = line.split('=')[1]
+ val = line.split('=', 1)[1]
val = val.strip('\"')
break
elif re.match("unset %s$" % var, line):
--
2.1.0
More information about the Openembedded-core
mailing list