wecisecode 1 týždeň pred
rodič
commit
28786c9e17
2 zmenil súbory, kde vykonal 10 pridanie a 5 odobranie
  1. 4 0
      odbctest/mql/mqltest.sh
  2. 6 5
      odbctest/odbcmql/mql_run.go

+ 4 - 0
odbctest/mql/mqltest.sh

@@ -20,10 +20,14 @@ odbpath=`./mql odbpath? log.level=error "$@"`
 keyspace=`./mql keyspace? log.level=error "$@"`
 if [[ `echo "${keyspace}" | wc -w` == "1" ]]; then
     logfile="${keyspace}.test.log"
+    lastlogfile="${keyspace}.last.log"
 else
     logfile="test.log"
+    lastlogfile="last.log"
 fi
 
+mv -f ${logfile} ${lastlogfile}
+
 if [[ "${odbpath}" != "" ]]; then
     echo ODBPATH="${odbpath}"
 fi

+ 6 - 5
odbctest/odbcmql/mql_run.go

@@ -219,11 +219,12 @@ mql语句扩展说明:
 	if !assert.Nil(t, ODBError) {
 		return
 	}
-	logger.Info("odbpath :", ODBC.Config().Hosts, ODBC.Config().Port)
-	logger.Info("keyspace:", ODBC.Config().Keyspace)
-	logger.Info("ksnative:", ksnative)
-	logger.Info("debug:   ", debug)
-	logger.Info("spath:   ", spath)
+	logger.Info("odbpath  :", ODBC.Config().Hosts, ODBC.Config().Port)
+	logger.Info("keyspace :", ODBC.Config().Keyspace)
+	logger.Info("version  :", ODBC.Versline())
+	logger.Info("ksnative :", ksnative)
+	logger.Info("debug    :", debug)
+	logger.Info("spath    :", spath)
 
 	// if checkCassSchema && !cass.CheckCassandraSchema(t) {
 	// 	assert.True(t, false, "cassandra schemda is different")