From 4f0266b390ccdc00dc2b1c435efed3a7fbb824f8 Mon Sep 17 00:00:00 2001 From: tomchon Date: Mon, 12 Jul 2021 14:19:51 +0800 Subject: [PATCH] [TD-5087]: update testcase that compressing wal logs --- tests/pytest/wal/sdbComp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytest/wal/sdbComp.py b/tests/pytest/wal/sdbComp.py index c0ac02610f..56b18c49eb 100644 --- a/tests/pytest/wal/sdbComp.py +++ b/tests/pytest/wal/sdbComp.py @@ -28,6 +28,7 @@ class TDTestCase: tdSql.init(conn.cursor(), logSql) def getBuildPath(self): + global selfPath selfPath = os.path.dirname(os.path.realpath(__file__)) if ("community" in selfPath): @@ -53,7 +54,7 @@ class TDTestCase: tdLog.info("taosd found in %s" % buildPath) binPath = buildPath+ "/build/bin/" - testPath = buildPath[:buildPath.find("debug")] + testPath = selfPath+ "/../../../" walFilePath = testPath + "/sim/dnode1/data/mnode_bak/wal/" #new db and insert data -- GitLab