sanitycheck: check for deprecated variant env variable

For those still using old variable ZEPHYR_GCC_VARIANT.
raise an error if the variable is not defined.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-02-15 07:20:18 -06:00 committed by Anas Nashif
commit 7fe35cf886

View file

@ -1546,7 +1546,12 @@ class TestSuite:
def apply_filters(self):
toolchain = os.environ.get("ZEPHYR_TOOLCHAIN_VARIANT", None)
toolchain = os.environ.get("ZEPHYR_TOOLCHAIN_VARIANT", None) or \
os.environ.get("ZEPHYR_GCC_VARIANT", None)
if not toolchain:
raise SanityRuntimeError("E: Variable ZEPHYR_TOOLCHAIN_VARIANT is not defined")
instances = []
discards = {}
platform_filter = options.platform