wecisecode il y a 1 semaine
Parent
commit
fbed67f113
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 1 1
      odbctest/mql/make.sh
  2. 3 0
      odbctest/mql/mqltest.sh

+ 1 - 1
odbctest/mql/make.sh

@@ -27,7 +27,7 @@ echo "${newdirinfo}" > mqldirinfo
 
 }
 
-echo "/*"`git log -1 --format=%cd --date=format:%Y%m%d%H%M%S`"*/;" > basic/99ver/99ver.mql
+echo "/* test.code.version="`git log -1 --format=%cd --date=format:%Y%m%d%H%M%S`"*/;" > basic/99ver/99ver.mql
 
 newdirinfo=`ls -lrt *.go ../odbcmql/*.go ../../go.*`
 dirinfo=`cat mqldirinfo`

+ 3 - 0
odbctest/mql/mqltest.sh

@@ -68,6 +68,9 @@ lastline=`tail -n 1 $logfile 2>&1`
 if [[ "$lastline" = "FAIL" ]]; then
     exit 123
 elif [[ "$lastline" = "PASS" ]]; then
+    echo "./mql $@" 2>/dev/null >> ${keyspace}.history.log
+    grep "test.code.version=" $logfile 2>/dev/null >> ${keyspace}.history.log
+    tail -n 4 $logfile | head -n 1 2>/dev/null >> ${keyspace}.history.log
     exit 0
 elif [[ `echo "$lastline" | grep './mqltest.sh:' | grep "已杀死"` != "" ]]; then
     exit 99