summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-04-04 09:45:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:12 +0100
commitb84671102ea0fb40fd72bff8b5d886385ba8a28c (patch)
treef2e3083cd73632b6238e10d9ed6f872d38b3c03e /meta
parent37cfcd2ccac48be9e15ac5074f437421b31cab5f (diff)
downloadpoky-b84671102ea0fb40fd72bff8b5d886385ba8a28c.tar.gz
selftest/commands: extend variable regex to include A_B variable notation
This change allows quering for variables with the format A_B, i.e. PREFERRED_PROVIDER_virtual/kernel instead of just A. (From OE-Core rev: 3810738eff6bdcf27c7e291dbeaedc699ab14bfc) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/utils/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 2951dfb49c..57286fcb10 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -165,7 +165,7 @@ def get_bb_vars(variables=None, target=None, postconfig=None):
165 165
166 if variables is not None: 166 if variables is not None:
167 variables = variables.copy() 167 variables = variables.copy()
168 var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$') 168 var_re = re.compile(r'^(export )?(?P<var>\w+(_.*)?)="(?P<value>.*)"$')
169 unset_re = re.compile(r'^unset (?P<var>\w+)$') 169 unset_re = re.compile(r'^unset (?P<var>\w+)$')
170 lastline = None 170 lastline = None
171 values = {} 171 values = {}