wecisecode 1 周之前
父节点
当前提交
baff9e6c7f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      odbctest/mql/mqltest.sh

+ 3 - 1
odbctest/mql/mqltest.sh

@@ -49,7 +49,9 @@ if [[ "${filescount}" == "0" ]]; then
     exit $?
 fi
 if [[ "${filescount}" == "1" ]]; then
-    logfile="${keyspace}.1test.log"
+    n=`ps -ef | grep "mql %@" | grep -v grep | wc -l`
+    n=`expr $n + 1`
+    logfile="${keyspace}.${n}test.log"
     ./mql "$@" 2>&1 | tee ${logfile}
     exit $?
 fi