fix: taosbenchmark coverity scan issues (#17361)
* fix: taosbenchmark coverity scan issues * fix: taosbenchmark default json case * fix: update taos-tools 217a267
This commit is contained in:
parent
31e712c16b
commit
5967e35afd
|
@ -2,7 +2,7 @@
|
|||
# taos-tools
|
||||
ExternalProject_Add(taos-tools
|
||||
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
|
||||
GIT_TAG d58230c
|
||||
GIT_TAG 217a267
|
||||
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
|
||||
BINARY_DIR ""
|
||||
#BUILD_IN_SOURCE TRUE
|
||||
|
|
|
@ -32,6 +32,10 @@ class TDTestCase:
|
|||
|
||||
if "community" in selfPath:
|
||||
projPath = selfPath[: selfPath.find("community")]
|
||||
elif "src" in selfPath:
|
||||
projPath = selfPath[: selfPath.find("src")]
|
||||
elif "/tools/" in selfPath:
|
||||
projPath = selfPath[: selfPath.find("/tools/")]
|
||||
else:
|
||||
projPath = selfPath[: selfPath.find("tests")]
|
||||
|
||||
|
@ -55,11 +59,10 @@ class TDTestCase:
|
|||
tdLog.info("%s" % cmd)
|
||||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from (select distinct(tbname) from db.stb)")
|
||||
tdSql.checkData(0, 0, 10)
|
||||
tdSql.query("show db.tables")
|
||||
tdSql.checkRows(10)
|
||||
tdSql.query("select count(*) from db.stb")
|
||||
if len(tdSql.queryResult):
|
||||
tdLog.exit("query result is %d" % len(tdSql.queryResult))
|
||||
tdSql.checkData(0, 0, 100)
|
||||
|
||||
def stop(self):
|
||||
tdSql.close()
|
||||
|
|
|
@ -20,8 +20,10 @@
|
|||
"super_tables": [{
|
||||
"name": "stb",
|
||||
"childtable_prefix": "stb_",
|
||||
"childtable_count": 10,
|
||||
"insert_rows": 10,
|
||||
"columns": [{"type": "INT"}],
|
||||
"tags": [{"type": "INT"}]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue