summaryrefslogtreecommitdiff
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 09:43:40 +0100
commit3810738eff6bdcf27c7e291dbeaedc699ab14bfc (patch)
treebd4f9ce98c7328df559aeb7aafca660a7a6c730d
parent57357d4e7f5d256a5cc657798f955f1ac8416665 (diff)
downloadopenembedded-core-3810738eff6bdcf27c7e291dbeaedc699ab14bfc.tar.gz
openembedded-core-3810738eff6bdcf27c7e291dbeaedc699ab14bfc.tar.bz2
openembedded-core-3810738eff6bdcf27c7e291dbeaedc699ab14bfc.zip
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. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
if variables is not None:
variables = variables.copy()
- var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
+ var_re = re.compile(r'^(export )?(?P<var>\w+(_.*)?)="(?P<value>.*)"$')
unset_re = re.compile(r'^unset (?P<var>\w+)$')
lastline = None
values = {}