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:33:05 +0200 |
commit | 2c1f61133e4674031f27ca5662c3e48200cfa300 (patch) | |
tree | c00fb5b606d58710b2f2dbc64536ea928abd8e57 | |
parent | b45e44eabb32e731569df179154645af660ea8d5 (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
@@ -1062,7 +1062,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)) |