[rtems-libbsd commit] builder.py: Only disable tests if they are there

Christian Mauderer christianm at rtems.org
Wed Jun 16 09:35:02 UTC 2021


Module:    rtems-libbsd
Branch:    6-freebsd-12
Commit:    400dcc41d7998b94645dfabac196c775e92a270f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=400dcc41d7998b94645dfabac196c775e92a270f

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Fri Jun 11 14:17:11 2021 +0200

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.

---

 builder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builder.py b/builder.py
index 8a1b9fd..c332032 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))



More information about the vc mailing list