From 30179d48d6617bc596469ea4b42049aa3671a562 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Tue, 10 May 2022 20:52:00 +0800 Subject: [PATCH] fix(os): TDinternal CI pytest error. --- tests/pytest/util/dnodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 8a29a0a7a6..9dcd485194 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -460,8 +460,7 @@ class TDDnodes: processID = subprocess.check_output( psCmd, shell=True).decode("utf-8") - binPath = os.path.dirname(os.path.realpath(__file__)) - binPath = binPath + "/../../../debug/" + binPath = self.dnodes[0].getPath() + "/../../../" tdLog.debug("binPath %s" % (binPath)) binPath = os.path.realpath(binPath) tdLog.debug("binPath real path %s" % (binPath))