wecisecode 4 dienas atpakaļ
vecāks
revīzija
3f9a584d45
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      odbctest/mql/mqltest.sh

+ 6 - 1
odbctest/mql/mqltest.sh

@@ -36,7 +36,12 @@ if [[ "${keyspace}" != "" ]]; then
 fi
 sleep 2
 
-mqlproc=`ps -ef | grep -v grep | grep mql | grep "basic$"`
+filepath=`echo "$@" | awk '{print $NF}'
+# remove ./
+filepath=${filepath/\.\//}
+# remove last slash
+filepath=${filepath%/}
+mqlproc=`ps -ef | grep -v grep | grep mql | grep "${filepath}"`
 if [[ "$mqlproc" != "" ]]; then
     echo "mql test is running"
     exit 111