From: DUC ANH HOANG Date: Mon, 20 Feb 2023 16:46:21 +0000 (+0100) Subject: switch "salome_init() -> salome_init_without_session()" for tests parallelizing X-Git-Tag: V9_11_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=905b3023cf4aebbaca5f883e8645c0c5de2f7994;p=modules%2Fhomard.git switch "salome_init() -> salome_init_without_session()" for tests parallelizing --- diff --git a/src/tests/Test/test_1.py b/src/tests/Test/test_1.py index 7fbab055..96561e6a 100755 --- a/src/tests/Test/test_1.py +++ b/src/tests/Test/test_1.py @@ -46,7 +46,7 @@ from test_util import test_results REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== -salome.salome_init() +salome.salome_init_without_session() import iparameters IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1)) IPAR.append("AP_MODULES_LIST", "Homard") diff --git a/src/tests/Test/test_2.py b/src/tests/Test/test_2.py index c3aeedf1..97c21a33 100755 --- a/src/tests/Test/test_2.py +++ b/src/tests/Test/test_2.py @@ -46,7 +46,7 @@ from test_util import test_results REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== -salome.salome_init() +salome.salome_init_without_session() import iparameters IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1)) IPAR.append("AP_MODULES_LIST", "Homard") diff --git a/src/tests/Test/test_3.py b/src/tests/Test/test_3.py index 725fefe0..ed2182e9 100755 --- a/src/tests/Test/test_3.py +++ b/src/tests/Test/test_3.py @@ -47,7 +47,7 @@ from test_util import test_results REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== -salome.salome_init() +salome.salome_init_without_session() import iparameters IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1)) IPAR.append("AP_MODULES_LIST", "Homard") diff --git a/src/tests/Test/test_4.py b/src/tests/Test/test_4.py index 660b76c7..86be9168 100755 --- a/src/tests/Test/test_4.py +++ b/src/tests/Test/test_4.py @@ -56,7 +56,7 @@ DZ = 200. REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) #======================================================================== -salome.salome_init() +salome.salome_init_without_session() #======================================================================== def create_cao_smesh (): diff --git a/src/tests/Test/test_5.py b/src/tests/Test/test_5.py index 1080c11b..0b197ebc 100755 --- a/src/tests/Test/test_5.py +++ b/src/tests/Test/test_5.py @@ -59,7 +59,7 @@ MESH_NAME = "MESH" REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) #======================================================================== -salome.salome_init() +salome.salome_init_without_session() #======================================================================== def mesh_exec(): diff --git a/src/tests/Test/test_6.py b/src/tests/Test/test_6.py index 4b4153ea..ce540493 100755 --- a/src/tests/Test/test_6.py +++ b/src/tests/Test/test_6.py @@ -52,7 +52,7 @@ LG_ARETE = TAILLE*2.5 REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) #======================================================================== -salome.salome_init() +salome.salome_init_without_session() #======================================================================== def create_cao_smesh (): diff --git a/src/tests/Test/tutorial_1.py b/src/tests/Test/tutorial_1.py index 01647c57..dcafd0a2 100755 --- a/src/tests/Test/tutorial_1.py +++ b/src/tests/Test/tutorial_1.py @@ -45,7 +45,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD import iparameters IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1)) diff --git a/src/tests/Test/tutorial_2.py b/src/tests/Test/tutorial_2.py index 2c3ba636..5bc53ec5 100755 --- a/src/tests/Test/tutorial_2.py +++ b/src/tests/Test/tutorial_2.py @@ -45,7 +45,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD # import iparameters diff --git a/src/tests/Test/tutorial_3.py b/src/tests/Test/tutorial_3.py index 89a295e3..eed859e5 100755 --- a/src/tests/Test/tutorial_3.py +++ b/src/tests/Test/tutorial_3.py @@ -45,7 +45,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD # import iparameters diff --git a/src/tests/Test/tutorial_4.py b/src/tests/Test/tutorial_4.py index 23923efb..188de5b3 100755 --- a/src/tests/Test/tutorial_4.py +++ b/src/tests/Test/tutorial_4.py @@ -48,7 +48,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD # import iparameters diff --git a/src/tests/Test/tutorial_5.py b/src/tests/Test/tutorial_5.py index 71cc27f5..38ed548b 100755 --- a/src/tests/Test/tutorial_5.py +++ b/src/tests/Test/tutorial_5.py @@ -47,7 +47,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD # import iparameters diff --git a/src/tests/Test/tutorial_6.py b/src/tests/Test/tutorial_6.py index f9ae6c70..32bcef00 100755 --- a/src/tests/Test/tutorial_6.py +++ b/src/tests/Test/tutorial_6.py @@ -49,7 +49,7 @@ REP_DATA, DIRCASE = get_dir(PATH_HOMARD, TEST_NAME, DEBUG) # ================================== # import salome -salome.salome_init() +salome.salome_init_without_session() import HOMARD # import iparameters