3 次代码提交 37b56632a9 ... 4461a15890

作者 SHA1 备注 提交日期
  wecisecode 4461a15890 Merge remote-tracking branch 'origin/master' 5 天之前
  wecisecode 44d8ef8905 ootest 5 天之前
  wecisecode aa8012aa00 mqltest 5 天之前
共有 2 个文件被更改,包括 10 次插入4 次删除
  1. 9 3
      odbctest/mql/mqltest.sh
  2. 1 1
      odbctest/mql/ootest.sh

+ 9 - 3
odbctest/mql/mqltest.sh

@@ -71,14 +71,20 @@ if [[ -e ${logfile} ]]; then
     mv -f ${logfile} ${lastlogfile}
 fi
 
+odbver=`./mql odbver? log.level=error "$@"`
 n=`./mql keyspace=matrix - "cql:select count(*) from system_schema.columns where keyspace_name='${keyspace}' and table_name='object_test'" 2>/dev/null | grep "count" | grep -v "grep" | grep -v "select" | awk '{print $2}'`
 if [[ "${n}" == "0" ]]; then
     n=1
 else
-    n=`cat ${keyspace}.test.count 2>/dev/null`
-    n=`expr 0${n} + 1`
+    mapfile -t x < ${keyspace}.test.count
+    if [[ "${x[0]}" == "${odbver}" ]]; then
+        n=`expr 0${x[1]} + 1`
+    else
+        n=1
+    fi
 fi
-echo "${n}" > ${keyspace}.test.count
+echo "${odbver}" > ${keyspace}.test.count
+echo "${n}" >> ${keyspace}.test.count
 ./mql "$@" "log.prefix=test $n" 2>&1 | tee -a ${logfile}
 lastline=`tail -n 1 $logfile 2>&1`
 if [[ "$lastline" = "FAIL" ]]; then

+ 1 - 1
odbctest/mql/ootest.sh

@@ -81,7 +81,7 @@ while [[ true ]]; do
     fi
     if [[ "$n" != "0" ]]; then
         cd "$CWD"
-        PROCFLAG="ootest$n"
+        PROCFLAG="ootest_"$keyspace"_$n"
         endflag="$odbver end of test $n return"
         ttt=`date +'%Y%m%d%H%M%S'`
         check_odbserver() {