@@ -92,7 +92,33 @@ def test_armc6_version_check(_run_cmd):
9292 """ , "" , 0 )
9393
9494 toolchain .version_check ()
95- assert notifier .messages == []
95+ assert notifier .messages == []
96+ assert not toolchain .is_mbed_studio_armc6
97+
98+ _run_cmd .return_value = ("""
99+ armclang: error: Failed to check out a license.
100+ The provided license does not enable these tools.
101+ Information about this error is available at: http://ds.arm.com/support/lic56/m5
102+ General licensing information is available at: http://ds.arm.com/support/licensing/
103+ If you need further help, provide this complete error report to your supplier or license.support@arm.com.
104+ - ARMLMD_LICENSE_FILE: unset
105+ - LM_LICENSE_FILE: unset
106+ - ARM_TOOL_VARIANT: unset
107+ - ARM_PRODUCT_PATH: unset
108+ - Product location: C:\MbedStudio\t ools\a c6\sw\mappings
109+ - Toolchain location: C:\MbedStudio\t ools\a c6\b in
110+ - Selected tool variant: product
111+ - Checkout feature: mbed_armcompiler
112+ - Feature version: 5.0201810
113+ - Flex error code: -5
114+ Product: ARM Compiler 6.11 for Mbed Studio
115+ Component: ARM Compiler 6.11
116+ Tool: armclang [5d3b3c00]
117+ """ , "" , 0 )
118+
119+ toolchain .version_check ()
120+ assert notifier .messages == []
121+ assert toolchain .is_mbed_studio_armc6
96122
97123@patch ('tools.toolchains.iar.run_cmd' )
98124def test_iar_version_check (_run_cmd ):
0 commit comments