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:
Javier B Perez 2016-08-08 12:24:59 -05:00
parent 8229904a00
commit 7941454b70

View file

@ -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: