wecisecode пре 4 дана
родитељ
комит
3f9a584d45
1 измењених фајлова са 6 додато и 1 уклоњено
  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