From: Serge Rehbinder Date: Tue, 20 Sep 2016 08:53:08 +0000 (+0200) Subject: bug fix: do not crash if there is no test base defined in a project X-Git-Tag: 5.0.0a1~115 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac78caf80a8e70e2c7e436b176d69535040c688b;p=tools%2Fsat.git bug fix: do not crash if there is no test base defined in a project --- diff --git a/src/test_module.py b/src/test_module.py index 2d0c08d..9a8dc5d 100644 --- a/src/test_module.py +++ b/src/test_module.py @@ -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