未验证 提交 0ba728cb 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2185 from...

Merge pull request #2185 from taosdata/hotfix/sangshuduo/make-pytest-support-both-tdinternal-and-community

make pytest support both TDinternal and community
......@@ -194,13 +194,13 @@ class TDDnode:
selfPath = os.path.dirname(os.path.realpath(__file__))
binPath = ""
if ("TDinternal" in selfPath):
if ("community" in selfPath):
projPath = selfPath + "/../../../../"
for root, dirs, files in os.walk(projPath):
if ("taosd" in files):
rootRealPath = os.path.dirname(os.path.realpath(root))
if ("community" not in rootRealPath):
if ("packaging" not in rootRealPath):
binPath = os.path.join(root, "taosd")
break
else:
......@@ -213,7 +213,7 @@ class TDDnode:
break
if (binPath == ""):
tdLog.exit("taosd not found!s")
tdLog.exit("taosd not found!")
else:
tdLog.info("taosd found in %s" % rootRealPath)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册