]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 17 Jun 2015 15:15:32 +0000 (16:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2015 08:12:01 +0000 (09:12 +0100)
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@linux.intel.com>
meta/lib/oeqa/utils/commands.py

index dc8a9836e7077775ccfc9ddb309014cd92248dd5..1be7bedd40d6cb0335a6778a035684197d9b75aa 100644 (file)
@@ -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):