Skip to content

Commit 7fe35cf

Browse files
nashifAnas Nashif
authored andcommitted
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>
1 parent 91b681a commit 7fe35cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/sanitycheck

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,12 @@ class TestSuite:
15461546

15471547
def apply_filters(self):
15481548

1549-
toolchain = os.environ.get("ZEPHYR_TOOLCHAIN_VARIANT", None)
1549+
toolchain = os.environ.get("ZEPHYR_TOOLCHAIN_VARIANT", None) or \
1550+
os.environ.get("ZEPHYR_GCC_VARIANT", None)
1551+
if not toolchain:
1552+
raise SanityRuntimeError("E: Variable ZEPHYR_TOOLCHAIN_VARIANT is not defined")
1553+
1554+
15501555
instances = []
15511556
discards = {}
15521557
platform_filter = options.platform

0 commit comments

Comments
 (0)