From: Paul Eggleton Date: Wed, 17 Jun 2015 15:15:32 +0000 (+0100) Subject: lib/oeqa/utils/commands: ensure get_bb_var() works when value contains = X-Git-Tag: 2015-10~1545 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ff720dd3b77130b2c485d7acad63735fd8751a7d;p=openembedded-core.git 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. Signed-off-by: Paul Eggleton --- 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): 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):