Salome HOME
Suppress the use of a useless temporary file during tests.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 26 Jun 2015 09:06:12 +0000 (11:06 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 26 Jun 2015 09:06:12 +0000 (11:06 +0200)
src/yacsloader/Test/runYacsLoaderTest.sh
src/yacsloader_swig/Test/runUnitTest.sh

index 4b53bbffe88dceb19d093b3c1f86b19fd2d03958..e18981d25a88e17e9ccb095b581638b25c6c7548 100644 (file)
@@ -21,7 +21,6 @@
 # script used by "salome test" command
 ./echoSrv &
 pidecho=$!
-echo $pidecho > "/tmp/YACSTEST_PidEcho"
 
 export TESTCOMPONENT_ROOT_DIR=`pwd`/../runtime
 
@@ -29,6 +28,6 @@ export TESTCOMPONENT_ROOT_DIR=`pwd`/../runtime
 ret=$?
 echo "exec status TestYacsLoader " $ret
 
-kill -9 `cat "/tmp/YACSTEST_PidEcho"`
+kill -9 $pidecho
 
 exit $ret
\ No newline at end of file
index 49926dfd0825692a577733b8101dc4598fa3594e..2a299223922acaecc2919d9901a0f465625e34d9 100644 (file)
@@ -21,7 +21,6 @@
 # script used by "salome test" command
 ../yacsloader/echoSrv &
 pidecho=$!
-echo $pidecho > "/tmp/YACSTEST_PidEcho"
 
 export TESTCOMPONENT_ROOT_DIR=`pwd`/../runtime
 
@@ -29,6 +28,6 @@ python -m unittest discover
 ret=$?
 echo "exec status salome_test_driver " $ret
 
-kill -9 `cat "/tmp/YACSTEST_PidEcho"`
+kill -9 $pidecho
 
 exit $ret
\ No newline at end of file