소스 검색

test shell

wecisecode 2 달 전
부모
커밋
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