[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5472/8267] selftest/commands: extend variable regex to include A_B variable notation



commit b84671102ea0fb40fd72bff8b5d886385ba8a28c
Author: Leonardo Sandoval <leonardo sandoval gonzalez linux intel com>
Date:   Tue Apr 4 09:45:46 2017 -0700

    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>

 meta/lib/oeqa/utils/commands.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 2951dfb..57286fc 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 = {}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]