fix: replace tdDnodes with sc

This commit is contained in:
Alex Duan 2024-12-24 17:25:29 +08:00
parent ddee6b86bf
commit f3b56c67ed
4 changed files with 7 additions and 7 deletions

View File

@ -40,9 +40,9 @@ class TDTestCase(TBase):
tdLog.info("%s" % cmd) tdLog.info("%s" % cmd)
os.system("%s" % cmd) os.system("%s" % cmd)
time.sleep(2) time.sleep(2)
tdDnodes.stopAll() sc.dnodeStopAll()
time.sleep(2) time.sleep(2)
tdDnodes.start(1) sc.dnodeStart(1)
time.sleep(2) time.sleep(2)
psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'" psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'"

View File

@ -36,9 +36,9 @@ class TDTestCase(TBase):
tdLog.info("%s" % cmd) tdLog.info("%s" % cmd)
os.system("%s" % cmd) os.system("%s" % cmd)
time.sleep(2) time.sleep(2)
tdDnodes.stopAll() sc.dnodeStopAll()
time.sleep(2) time.sleep(2)
tdDnodes.start(1) sc.dnodeStart(1)
time.sleep(2) time.sleep(2)
psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'" psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'"

View File

@ -36,9 +36,9 @@ class TDTestCase(TBase):
tdLog.info("%s" % cmd) tdLog.info("%s" % cmd)
os.system("%s" % cmd) os.system("%s" % cmd)
time.sleep(2) time.sleep(2)
tdDnodes.stopAll() sc.dnodeStopAll()
time.sleep(2) time.sleep(2)
tdDnodes.start(1) sc.dnodeStart(1)
time.sleep(2) time.sleep(2)
psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'" psCmd = "ps -ef|grep -w taosBenchmark| grep -v grep | awk '{print $2}'"

View File

@ -1,7 +1,7 @@
set -e set -e
count=0 count=0
for i in `find tools/benchmark/basic/ -name "*.py"` for i in `find tools/benchmark/basic/ -name "*.py"`
do printf "cnt=$count python3 test.py -f $i \n" do printf "\n\n ***** cnt=$count python3 test.py -f $i *****\n\n"
python3 test.py -f $i python3 test.py -f $i
((count=count+1)) ((count=count+1))
done done