Fix start.sh script due to bad pid calculated
[anna.git] / example / diameter / launcher / deployments / adml / start.sh
index d2b371e..b8f2e9f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $1: args type could be 'ft' (function test) or 'st' (system test). By default: ft
+# $1: args type could be 'ft' (function test) or 'st' (system test), or 'help' to get the command line help. By default: ft
 function pgrep_live {
   pids=$(pgrep "$1");
   [ "$pids" ] || return;
@@ -15,7 +15,8 @@ for file in `ls *.launcher.log 2>/dev/null`; do 0> $file; done
 mkdir -p counters test-reports
 rm -f counters/* test-reports/* *.csv
 export LD_LIBRARY_PATH=$PWD/dynlibs
-eval ./ADML `grep -v ^# $ARGS` &
+args=$(eval echo $(grep -v ^# $ARGS))
+./ADML ${args} &
 echo $! > .pid
 echo "Done !"