From: Ovidiu Mircescu Date: Wed, 11 Feb 2015 13:36:46 +0000 (+0100) Subject: KERNEL tests will no longer fail if ROOT_SALOME is not defined. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b583cf24c5e050c1a77c698253ee4fa687e5fa91;p=modules%2Fyacs.git KERNEL tests will no longer fail if ROOT_SALOME is not defined. If ROOT_SALOME is not defined, the test of SalomeLauncher will be ignored and it will not be marked as failed. --- diff --git a/src/UnitTests/prepare_test.py b/src/UnitTests/prepare_test.py index 71a296af1..2d554ef64 100755 --- a/src/UnitTests/prepare_test.py +++ b/src/UnitTests/prepare_test.py @@ -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 = ''' @@ -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 + '"/>'