Added exclude_mcu key to tests.py config

pull/1439/head
Brian Daniels 2015-11-18 17:17:50 -06:00
parent 8c5d1c885f
commit 4b29e9c647
1 changed files with 3 additions and 0 deletions

View File

@ -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