未验证 提交 ad2b6cab 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

fix: taosbenchmark coverity scan issues for 2.6 (#17362)

* fix: taosbenchmark coverity scan issues

* test: fix default_json py logic

* fix: update taos-tools 217a267 for 2.6
上级 f994c52a
Subproject commit d58230c3e62d3dd7c3057c9d48cee8c61fbfe92a
Subproject commit 217a267b5365b7a4089eb6ee2d4b2ceedfc4df66
......@@ -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(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"}]
}]
}]
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册