Salome HOME
bug fix: do not crash if there is no test base defined in a project
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 08:53:08 +0000 (10:53 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 08:53:08 +0000 (10:53 +0200)
src/test_module.py

index 2d0c08de0aa99d3b15acde25abf048c055d903d7..9a8dc5d1e7b5c14b0e0102b76cf50eab6d94aa5f 100644 (file)
@@ -210,6 +210,8 @@ class Test:
         test_base_info = None
         for project_name in self.config.PROJECTS.projects:
             project_info = self.config.PROJECTS.projects[project_name]
+            if "test_bases" not in project_info:
+                continue
             for t_b_info in project_info.test_bases:
                 if t_b_info.name == test_base_name:
                     test_base_info = t_b_info