diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-06-11 14:17:11 +0200 |
---|---|---|
committer | Christian Mauderer <oss@c-mauderer.de> | 2021-06-16 11:34:19 +0200 |
commit | 400dcc41d7998b94645dfabac196c775e92a270f (patch) | |
tree | 0c374c77dc1e3304be10fe21476c4f076d42f695 | |
parent | 2c8bbde1dc0c0ac987c3a4b9d73de0c207d8da7c (diff) |
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-x | builder.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |