Merge pull request #7202 from taosdata/xiaoping/add_test_case
[TD-5730]<test>: update performance test script
This commit is contained in:
commit
cb3f7af146
|
@ -31,7 +31,7 @@ class taosdemoQueryPerformace:
|
||||||
self.host = "127.0.0.1"
|
self.host = "127.0.0.1"
|
||||||
self.user = "root"
|
self.user = "root"
|
||||||
self.password = "taosdata"
|
self.password = "taosdata"
|
||||||
self.config = "/etc/taosperf"
|
self.config = "/etc/perf"
|
||||||
self.conn = taos.connect(
|
self.conn = taos.connect(
|
||||||
self.host,
|
self.host,
|
||||||
self.user,
|
self.user,
|
||||||
|
|
|
@ -16,8 +16,7 @@ import pandas as pd
|
||||||
import argparse
|
import argparse
|
||||||
import os.path
|
import os.path
|
||||||
import json
|
import json
|
||||||
from util.log import tdLog
|
import sys
|
||||||
from util.sql import tdSql
|
|
||||||
|
|
||||||
class taosdemoPerformace:
|
class taosdemoPerformace:
|
||||||
def __init__(self, commitID, dbName, branch, type):
|
def __init__(self, commitID, dbName, branch, type):
|
||||||
|
@ -132,7 +131,9 @@ class taosdemoPerformace:
|
||||||
def insertData(self):
|
def insertData(self):
|
||||||
buildPath = self.getBuildPath()
|
buildPath = self.getBuildPath()
|
||||||
if (buildPath == ""):
|
if (buildPath == ""):
|
||||||
tdLog.exit("taosdemo not found!")
|
print("taosdemo not found!")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
binPath = buildPath + "/build/bin/"
|
binPath = buildPath + "/build/bin/"
|
||||||
|
|
||||||
os.system(
|
os.system(
|
||||||
|
|
Loading…
Reference in New Issue