diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 788f26a2620d1411982eb93540765f5c77a4ac44..aa865ff9b4035c263fee884ecdf7b7c34ee57765 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -202,7 +202,7 @@ class TDDnode: if ("taosd" in files): rootRealPath = os.path.dirname(os.path.realpath(root)) if ("packaging" not in rootRealPath): - buildPath = root[:root.find("build")] + buildPath = root[:len(root)-len("/build/bin")] break return buildPath