summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/commands.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-12-19 11:41:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-23 10:18:15 +0000
commitd7aec8c5f4bc284896ab1c913547d0b0ce666dff (patch)
treeed374a4d1cce3d565f1712b838be658857c34a86 /meta/lib/oeqa/utils/commands.py
parent15de188692d2572d897799424e2a22eab24c78e2 (diff)
downloadpoky-d7aec8c5f4bc284896ab1c913547d0b0ce666dff.tar.gz
oeqa/utils: make get_bb_var() more reliable
* Enable querying exported variables * Use strip() to remove quotes so any internal quotes are not disturbed (From OE-Core rev: 418cdf1ca37e06165ebaec86a0098d4750208539) 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/commands.py')
-rw-r--r--meta/lib/oeqa/utils/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 802bc2f208..d29c1b1a68 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -138,9 +138,9 @@ def get_bb_var(var, target=None, postconfig=None):
138 val = None 138 val = None
139 bbenv = get_bb_env(target, postconfig=postconfig) 139 bbenv = get_bb_env(target, postconfig=postconfig)
140 for line in bbenv.splitlines(): 140 for line in bbenv.splitlines():
141 if line.startswith(var + "="): 141 if line.startswith(var + "=") or line.startswith("export " + var + "="):
142 val = line.split('=')[1] 142 val = line.split('=')[1]
143 val = val.replace('\"','') 143 val = val.strip('\"')
144 break 144 break
145 return val 145 return val
146 146