summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-rw-r--r--meta/lib/oeqa/utils/commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 5b601d9806..e8a467f4cd 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -137,11 +137,18 @@ def get_bb_env(target=None, postconfig=None):
137def get_bb_var(var, target=None, postconfig=None): 137def 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 lastline = None
140 for line in bbenv.splitlines(): 141 for line in bbenv.splitlines():
141 if line.startswith(var + "=") or line.startswith("export " + var + "="): 142 if line.startswith(var + "=") or line.startswith("export " + var + "="):
142 val = line.split('=')[1] 143 val = line.split('=')[1]
143 val = val.strip('\"') 144 val = val.strip('\"')
144 break 145 break
146 elif line.startswith("unset " + var):
147 # Handle [unexport] variables
148 if lastline.startswith('# "'):
149 val = lastline.split('\"')[1]
150 break
151 lastline = line
145 return val 152 return val
146 153
147def get_test_layer(): 154def get_test_layer():