diff options
author | Javier B Perez <javier.b.perez.hernandez@intel.com> | 2016-08-08 12:24:59 -0500 |
---|---|---|
committer | Javier B Perez <javier.b.perez.hernandez@intel.com> | 2016-08-29 14:43:01 +0000 |
commit | 7941454b704d19123fdd963e8c8e317fe8bb80ce (patch) | |
tree | 75c4bce920e88c6d31559401fe3fc1adb31c2e95 /scripts/sanitycheck | |
parent | 8229904a0007653b9d6ee33e3cebf90871bbdac7 (diff) |
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>
Diffstat (limited to 'scripts/sanitycheck')
-rwxr-xr-x | scripts/sanitycheck | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 6328666d8..366aacd25 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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: |