From 19d99491da7c6a0f9c9b985596efb256583c3c08 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang <1296468573@qq.com> Date: Thu, 31 Mar 2022 14:30:13 +0800 Subject: [PATCH] [TD-14331]: util/dnodes.py win error. (#11158) --- tests/pytest/util/dnodes.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index aa3e22ee7a..3f54d264df 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -262,6 +262,8 @@ class TDDnode: if ("packaging" not in rootRealPath): paths.append(os.path.join(root, tool)) break + if (len(paths) == 0): + return "" return paths[0] def start(self): @@ -274,7 +276,7 @@ class TDDnode: taosadapterBinPath = self.getPath("taosadapter") if (taosadapterBinPath == ""): - tdLog.exit("taosAdapter not found!") + tdLog.info("taosAdapter not found!") else: tdLog.info("taosAdapter found: %s" % taosadapterBinPath) @@ -344,11 +346,11 @@ class TDDnode: if (binPath == ""): tdLog.exit("taosd.exe not found!") else: - tdLog.info("taosd.exe found: %s" % bnPath) + tdLog.info("taosd.exe found: %s" % binPath) taosadapterBinPath = self.getPath("taosadapter.exe") if (taosadapterBinPath == ""): - tdLog.exit("taosAdapter.exe not found!") + tdLog.info("taosAdapter.exe not found!") else: tdLog.info("taosAdapter.exe found in %s" % taosadapterBuildPath) -- GitLab