@@ -92,7 +92,33 @@ def test_armc6_version_check(_run_cmd):
92
92
""" , "" , 0 )
93
93
94
94
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 [email protected] .
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
96
122
97
123
@patch ('tools.toolchains.iar.run_cmd' )
98
124
def test_iar_version_check (_run_cmd ):
0 commit comments