diff --git a/tests/pytest/query/queryPerformance.py b/tests/pytest/query/queryPerformance.py index 1d4e6a2f0f4bd8a107ab49f88ee7ce6a80259b8a..81103252d8794032ee17b143f814276e171863f2 100644 --- a/tests/pytest/query/queryPerformance.py +++ b/tests/pytest/query/queryPerformance.py @@ -31,7 +31,7 @@ class taosdemoQueryPerformace: self.host = "127.0.0.1" self.user = "root" self.password = "taosdata" - self.config = "/etc/taosperf" + self.config = "/etc/perf" self.conn = taos.connect( self.host, self.user, diff --git a/tests/pytest/tools/taosdemoPerformance.py b/tests/pytest/tools/taosdemoPerformance.py index 9d9b29c0175d81e7b06e0bb676a85f16ffda12df..6b5681dfbc3773c51161d4c89a775ea653f81f7b 100644 --- a/tests/pytest/tools/taosdemoPerformance.py +++ b/tests/pytest/tools/taosdemoPerformance.py @@ -16,8 +16,7 @@ import pandas as pd import argparse import os.path import json -from util.log import tdLog -from util.sql import tdSql +import sys class taosdemoPerformace: def __init__(self, commitID, dbName, branch, type): @@ -132,7 +131,9 @@ class taosdemoPerformace: def insertData(self): buildPath = self.getBuildPath() if (buildPath == ""): - tdLog.exit("taosdemo not found!") + print("taosdemo not found!") + sys.exit(1) + binPath = buildPath + "/build/bin/" os.system(