From b583cf24c5e050c1a77c698253ee4fa687e5fa91 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Wed, 11 Feb 2015 14:36:46 +0100 Subject: [PATCH] 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. --- src/UnitTests/prepare_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + '"/>' -- 2.39.2