From 782607fe68dc5c591c93722e1d5e6c0b175cc977 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sat, 13 Jan 2024 13:31:40 +0800 Subject: [PATCH] add case fullopt.py --- tests/army/community/cmdline/{taosd.py => fullopt.py} | 5 ++--- tests/army/frame/srvCtl.py | 2 +- tests/parallel_test/cases.task | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) rename tests/army/community/cmdline/{taosd.py => fullopt.py} (94%) diff --git a/tests/army/community/cmdline/taosd.py b/tests/army/community/cmdline/fullopt.py similarity index 94% rename from tests/army/community/cmdline/taosd.py rename to tests/army/community/cmdline/fullopt.py index c361732dca..8a69ae11c5 100644 --- a/tests/army/community/cmdline/taosd.py +++ b/tests/army/community/cmdline/fullopt.py @@ -16,7 +16,7 @@ import time import random import taos -import frame +import frame.etool from frame.log import * from frame.sql import * @@ -30,7 +30,6 @@ class TDTestCase(TBase): def insertData(self): tdLog.info(f"insert data.") - tdSql.execute(f"use {self.db}") # set insert data information self.childtable_count = 10 self.insert_rows = 10000 @@ -44,7 +43,7 @@ class TDTestCase(TBase): tdLog.info(f"do action.") # dump out sdb - sdb = epath.binFile("sdb.json") + sdb = "./sdb.json" eos.delFile(sdb) cfg = sc.dnodeCfgPath(1) diff --git a/tests/army/frame/srvCtl.py b/tests/army/frame/srvCtl.py index e708656b70..6c97d6bbc4 100644 --- a/tests/army/frame/srvCtl.py +++ b/tests/army/frame/srvCtl.py @@ -47,7 +47,7 @@ class srvCtl: # taos.cfg position def dnodeCfgPath(self, idx): - return tdDnodes.tdDnodes[idx-1].cfgPath + return tdDnodes.dnodes[idx-1].cfgPath sc = srvCtl() \ No newline at end of file diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index f19a0bda46..a3f35cbef0 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -11,6 +11,7 @@ ,,y,army,./pytest.sh python3 ./test.py -f enterprise/multi-level/mlevel_basic.py -N 3 -L 3 -D 2 ,,y,army,./pytest.sh python3 ./test.py -f enterprise/s3/s3_basic.py -L 3 -D 1 ,,y,army,./pytest.sh python3 ./test.py -f community/cluster/snapshot.py -N 3 -L 3 -D 2 +,,y,army,./pytest.sh python3 ./test.py -f community/cmdline/fullopt.py #