mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
37cfcd2cca
commit
b84671102e
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user