mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 03:17:56 +08:00
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.
This commit is contained in:

committed by
Christian Mauderer

parent
2c8bbde1dc
commit
400dcc41d7
@@ -1059,7 +1059,8 @@ class ModuleManager(object):
|
|||||||
|
|
||||||
def _checkDependencies(self):
|
def _checkDependencies(self):
|
||||||
enabled_modules = self.getEnabledModules()
|
enabled_modules = self.getEnabledModules()
|
||||||
enabled_modules.remove('tests')
|
if 'tests' in enabled_modules:
|
||||||
|
enabled_modules.remove('tests')
|
||||||
for mod in enabled_modules:
|
for mod in enabled_modules:
|
||||||
if mod not in self.modules:
|
if mod not in self.modules:
|
||||||
raise KeyError('enabled module not found: %s' % (mod))
|
raise KeyError('enabled module not found: %s' % (mod))
|
||||||
|
Reference in New Issue
Block a user