]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
KERNEL tests will no longer fail if ROOT_SALOME is not defined.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 11 Feb 2015 13:36:46 +0000 (14:36 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 11 Feb 2015 13:36:46 +0000 (14:36 +0100)
If ROOT_SALOME is not defined, the test of SalomeLauncher will be
ignored and it will not be marked as failed.

src/UnitTests/prepare_test.py

index 71a296af194c11e8ee12125bf87606eef4bca145..2d554ef642e65c8e4010ece402f28062ea7d63c1 100755 (executable)
@@ -32,7 +32,7 @@ class TestEnvironment:
       print "File salome_context.cfg not found."
       print "Search path:" + salome_path
       print "This test needs ROOT_SALOME environment variable in order to run"
-      exit(1)
+      exit(0)
     
     config_appli_text = '''<application>
 <context path="''' + salome_context_file + '''"/>
@@ -41,7 +41,7 @@ class TestEnvironment:
     kernel_path = os.getenv("KERNEL_ROOT_DIR", "")
     if not os.path.isdir(kernel_path) :
       print "KERNEL_ROOT_DIR not defined"
-      exit(1)
+      exit(0)
       pass
     
     config_appli_text += kernel_path + '"/>'