sanitycheck: filter: add support to use env variables
Added support in the sanitycheck to use env variable value in the filter. Change-Id: I76388dc04557dcd31e651d23ae8edf96a8fe2474 Jira: ZEP-592 Signed-off-by: Javier B Perez <javier.b.perez.hernandez@intel.com>
This commit is contained in:
parent
8229904a00
commit
7941454b70
|
@ -64,7 +64,8 @@ Each testcase.ini block can define the following key/value pairs:
|
|||
|
||||
{ ARCH : <architecture>,
|
||||
PLATFORM : <platform>,
|
||||
<all CONFIG_* key/value pairs in the test's generated defconfig>
|
||||
<all CONFIG_* key/value pairs in the test's generated defconfig>,
|
||||
*<env>: any environment variable available
|
||||
}
|
||||
|
||||
The grammar for the expression language is as follows:
|
||||
|
@ -1349,6 +1350,7 @@ class TestSuite:
|
|||
continue
|
||||
|
||||
defconfig = {"ARCH" : arch.name, "PLATFORM" : plat.name}
|
||||
defconfig.update(os.environ)
|
||||
for tcase, tdefconfig in tc.defconfig.items():
|
||||
p, k = tcase
|
||||
if k == tc.ktype and p == plat:
|
||||
|
|
Loading…
Reference in a new issue