From 29f863b3c6dc9de13770b873def4a21b38cd439b Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Mon, 2 Mar 2020 23:11:17 +0100 Subject: [PATCH] escape quotes in test and eval test string --- DDTest/CMakeLists.txt | 2 +- cmake/run_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DDTest/CMakeLists.txt b/DDTest/CMakeLists.txt index ac51cb319..4f065e258 100644 --- a/DDTest/CMakeLists.txt +++ b/DDTest/CMakeLists.txt @@ -64,7 +64,7 @@ if (DD4HEP_USE_GEANT4) ADD_TEST( t_test_ddsim "${CMAKE_INSTALL_PREFIX}/bin/run_test.sh" ddsim --compactFile=${CMAKE_INSTALL_PREFIX}/DDDetectors/compact/SiD.xml --runType=batch -G -N=2 --outputFile=testSid.root - --gun.position "0.0 0.0 0.0" --gun.direction "1.0 0.0 1.0" --gun.energy 100*GeV --part.userParticleHandler=) + --gun.position \"0.0 0.0 1.0*cm\" --gun.direction \"1.0 0.0 1.0\" --gun.energy 100*GeV --part.userParticleHandler=) SET_TESTS_PROPERTIES( t_test_ddsim PROPERTIES FAIL_REGULAR_EXPRESSION "Exception;EXCEPTION;ERROR;Error" ) endif() diff --git a/cmake/run_test.sh b/cmake/run_test.sh index aed7ac0a2..eab04a6c2 100755 --- a/cmake/run_test.sh +++ b/cmake/run_test.sh @@ -24,4 +24,4 @@ done echo " #### LD_LIBRARY_PATH = : ${LD_LIBRARY_PATH}" echo "---running test : '" ${command} ${theargs} "'" -${command} ${theargs} +eval ${command} ${theargs} -- GitLab