From 905b3023cf4aebbaca5f883e8645c0c5de2f7994 Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Mon, 20 Feb 2023 17:46:21 +0100 Subject: [PATCH] switch "salome_init() -> salome_init_without_session()" for tests parallelizing --- src/tests/Test/test_1.py | 2 +- src/tests/Test/test_2.py | 2 +- src/tests/Test/test_3.py | 2 +- src/tests/Test/test_4.py | 2 +- src/tests/Test/test_5.py | 2 +- src/tests/Test/test_6.py | 2 +- src/tests/Test/tutorial_1.py | 2 +- src/tests/Test/tutorial_2.py | 2 +- src/tests/Test/tutorial_3.py | 2 +- src/tests/Test/tutorial_4.py | 2 +- src/tests/Test/tutorial_5.py | 2 +- src/tests/Test/tutorial_6.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) 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 -- 2.39.2