From ba4ae0bc840a3fb81e35781e37adc599ffcf37fd Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Thu, 5 Aug 2021 20:56:57 +0800 Subject: [PATCH] [TD-5730]: add test case --- tests/pytest/query/queryPerformance.py | 2 +- tests/pytest/tools/taosdemoPerformance.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/pytest/query/queryPerformance.py b/tests/pytest/query/queryPerformance.py index 1d4e6a2f0f..81103252d8 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 9d9b29c017..6b5681dfbc 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( -- GitLab