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