[TD-5087]<test>: update testcase that compressing wal logs
This commit is contained in:
parent
befa257a86
commit
4f0266b390
|
@ -28,6 +28,7 @@ class TDTestCase:
|
||||||
tdSql.init(conn.cursor(), logSql)
|
tdSql.init(conn.cursor(), logSql)
|
||||||
|
|
||||||
def getBuildPath(self):
|
def getBuildPath(self):
|
||||||
|
global selfPath
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
selfPath = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
if ("community" in selfPath):
|
if ("community" in selfPath):
|
||||||
|
@ -53,7 +54,7 @@ class TDTestCase:
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
tdLog.info("taosd found in %s" % buildPath)
|
||||||
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
binPath = buildPath+ "/build/bin/"
|
||||||
testPath = buildPath[:buildPath.find("debug")]
|
testPath = selfPath+ "/../../../"
|
||||||
walFilePath = testPath + "/sim/dnode1/data/mnode_bak/wal/"
|
walFilePath = testPath + "/sim/dnode1/data/mnode_bak/wal/"
|
||||||
|
|
||||||
#new db and insert data
|
#new db and insert data
|
||||||
|
|
Loading…
Reference in New Issue