Skip to content

Commit 3effe0c

Browse files
The ITS Code write and delete a segmentation description file with a hardcoded name, when runing the tests in parallel G3 and G4 the second test always crashs. a work around for now is to set the G4 test as dependent on the G3 test to prevent them from runing in parallel
1 parent 2b74ab0 commit 3effe0c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

macro/CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/run_sim.C)
22

3-
ForEach(_mcEngine IN ITEMS TGeant3 TGeant4)
4-
Add_Test(run_sim_${_mcEngine}
5-
${CMAKE_BINARY_DIR}/macro/run_sim.sh 10 \"${_mcEngine}\")
6-
Set_Tests_Properties(run_sim_${_mcEngine} PROPERTIES TIMEOUT "30")
7-
Set_Tests_Properties(run_sim_${_mcEngine} PROPERTIES PASS_REGULAR_EXPRESSION "Macro finished succesfully")
8-
EndForEach(_mcEngine IN ITEMS TGeant3 TGeant4)
3+
Add_Test(run_sim_TGeant3
4+
${CMAKE_BINARY_DIR}/macro/run_sim.sh 10 \"TGeant3\")
5+
Set_Tests_Properties(run_sim_TGeant3 PROPERTIES TIMEOUT "30")
6+
Set_Tests_Properties(run_sim_TGeant3 PROPERTIES PASS_REGULAR_EXPRESSION "Macro finished succesfully")
7+
8+
Add_Test(run_sim_TGeant4
9+
${CMAKE_BINARY_DIR}/macro/run_sim.sh 10 \"TGeant4\")
10+
Set_Tests_Properties(run_sim_TGeant4 PROPERTIES DEPENDS run_sim_TGeant3)
11+
Set_Tests_Properties(run_sim_TGeant4 PROPERTIES TIMEOUT "30")
12+
Set_Tests_Properties(run_sim_TGeant4 PROPERTIES PASS_REGULAR_EXPRESSION "Macro finished succesfully")
913

1014
Install(FILES run_sim.C
1115
DESTINATION share/its

0 commit comments

Comments
 (0)