diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-12-19 11:41:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-21 17:30:52 +0000 |
commit | 418cdf1ca37e06165ebaec86a0098d4750208539 (patch) | |
tree | b83f9853a4d343ee42a8317b66a7d21a3ceae257 /meta | |
parent | c3598cf720e04ab27ab5d2817c09f2496b677560 (diff) | |
download | openembedded-core-418cdf1ca37e06165ebaec86a0098d4750208539.tar.gz openembedded-core-418cdf1ca37e06165ebaec86a0098d4750208539.tar.bz2 openembedded-core-418cdf1ca37e06165ebaec86a0098d4750208539.zip |
oeqa/utils: make get_bb_var() more reliable
* Enable querying exported variables
* Use strip() to remove quotes so any internal quotes are not disturbed
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 4 |
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): val = None bbenv = get_bb_env(target, postconfig=postconfig) for line in bbenv.splitlines(): - if line.startswith(var + "="): + if line.startswith(var + "=") or line.startswith("export " + var + "="): val = line.split('=')[1] - val = val.replace('\"','') + val = val.strip('\"') break return val |