Skip to content

Commit 915257a

Browse files
committed
Merge pull request #1439 from bridadan/exclude-mcu-test
Added exclude_mcu key to tests.py config
2 parents c3901c6 + 4b29e9c commit 915257a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

workspace_tools/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ def __init__(self, n):
10921092
def is_supported(self, target, toolchain):
10931093
if hasattr(self, 'mcu') and not target in self.mcu:
10941094
return False
1095+
if hasattr(self, 'exclude_mcu') and target in self.exclude_mcu:
1096+
return False
10951097
if not hasattr(self, 'supported'):
10961098
return True
10971099
return (target in self.supported) and (toolchain in self.supported[target])
@@ -1111,6 +1113,7 @@ def __str__(self):
11111113
def __getitem__(self, key):
11121114
if key == "id": return self.id
11131115
elif key == "mcu": return self.mcu
1116+
elif key == "exclude_mcu": return self.exclude_mcu
11141117
elif key == "dependencies": return self.dependencies
11151118
elif key == "description": return self.description
11161119
elif key == "duration": return self.duration

0 commit comments

Comments
 (0)