summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2021-06-11 14:17:11 +0200
committerChristian Mauderer <oss@c-mauderer.de>2021-06-16 11:34:19 +0200
commit400dcc41d7998b94645dfabac196c775e92a270f (patch)
tree0c374c77dc1e3304be10fe21476c4f076d42f695
parentracoon: Fix build with current toolchain (diff)
downloadrtems-libbsd-400dcc41d7998b94645dfabac196c775e92a270f.tar.bz2
builder.py: Only disable tests if they are there
For checking the dependencies, the tests are removed. But if the tests are not enabled at all, that triggers a python exception.
-rwxr-xr-xbuilder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/builder.py b/builder.py
index 8a1b9fd5..c3320325 100755
--- a/builder.py
+++ b/builder.py
@@ -1059,7 +1059,8 @@ class ModuleManager(object):
def _checkDependencies(self):
enabled_modules = self.getEnabledModules()
- enabled_modules.remove('tests')
+ if 'tests' in enabled_modules:
+ enabled_modules.remove('tests')
for mod in enabled_modules:
if mod not in self.modules:
raise KeyError('enabled module not found: %s' % (mod))