From: Leonardo Sandoval Date: Tue, 4 Apr 2017 16:45:46 +0000 (-0700) Subject: selftest/commands: extend variable regex to include A_B variable notation X-Git-Tag: yocto-2.3~239 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3810738eff6bdcf27c7e291dbeaedc699ab14bfc;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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\w+)="(?P.*)"$') + var_re = re.compile(r'^(export )?(?P\w+(_.*)?)="(?P.*)"$') unset_re = re.compile(r'^unset (?P\w+)$') lastline = None values = {}