mirror of https://github.com/ARMmbed/mbed-os.git
Added exclude_mcu key to tests.py config
parent
8c5d1c885f
commit
4b29e9c647
|
@ -1092,6 +1092,8 @@ class Test:
|
|||
def is_supported(self, target, toolchain):
|
||||
if hasattr(self, 'mcu') and not target in self.mcu:
|
||||
return False
|
||||
if hasattr(self, 'exclude_mcu') and target in self.exclude_mcu:
|
||||
return False
|
||||
if not hasattr(self, 'supported'):
|
||||
return True
|
||||
return (target in self.supported) and (toolchain in self.supported[target])
|
||||
|
@ -1111,6 +1113,7 @@ class Test:
|
|||
def __getitem__(self, key):
|
||||
if key == "id": return self.id
|
||||
elif key == "mcu": return self.mcu
|
||||
elif key == "exclude_mcu": return self.exclude_mcu
|
||||
elif key == "dependencies": return self.dependencies
|
||||
elif key == "description": return self.description
|
||||
elif key == "duration": return self.duration
|
||||
|
|
Loading…
Reference in New Issue