summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-06-17 16:15:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-18 09:14:06 +0100
commite22c18113b11f557c4502738ccdfbb06093a759a (patch)
tree8b2b01a78b6422004f45467a7e4fe4baf179f36f /meta/lib/oeqa/utils
parent0899d9af1da320a857c4dd65db279b0173ad803a (diff)
downloadpoky-e22c18113b11f557c4502738ccdfbb06093a759a.tar.gz
lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
Only split on the first equals character so that values that contain equals characters (such as FAKEROOTENV) can be retrieved. (From OE-Core rev: ff720dd3b77130b2c485d7acad63735fd8751a7d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index dc8a9836e7..1be7bedd40 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):
141 lastline = None 141 lastline = None
142 for line in bbenv.splitlines(): 142 for line in bbenv.splitlines():
143 if re.search("^(export )?%s=" % var, line): 143 if re.search("^(export )?%s=" % var, line):
144 val = line.split('=')[1] 144 val = line.split('=', 1)[1]
145 val = val.strip('\"') 145 val = val.strip('\"')
146 break 146 break
147 elif re.match("unset %s$" % var, line): 147 elif re.match("unset %s$" % var, line):