fix: fullopts.py not passed

This commit is contained in:
Alex Duan 2025-02-22 19:02:52 +08:00
parent d4c95697da
commit c1d41e71f9
1 changed files with 4 additions and 8 deletions

View File

@ -30,7 +30,7 @@ class TDTestCase(TBase):
updatecfgDict = { updatecfgDict = {
'queryMaxConcurrentTables': '2K', 'queryMaxConcurrentTables': '2K',
'streamMax': '1M', 'streamMax': '1M',
'totalMemoryKB': '32G', 'totalMemoryKB': '32000000',
'streamMax': '1P', 'streamMax': '1P',
'streamBufferSize':'1T', 'streamBufferSize':'1T',
'slowLogScope':"query" 'slowLogScope':"query"
@ -47,10 +47,6 @@ class TDTestCase(TBase):
# taosBenchmark run # taosBenchmark run
etool.benchMark(command = f"-d {self.db} -t {self.childtable_count} -n {self.insert_rows} -v 2 -y") etool.benchMark(command = f"-d {self.db} -t {self.childtable_count} -n {self.insert_rows} -v 2 -y")
def checkQueryOK(self, rets):
if rets[-2][:9] != "Query OK,":
tdLog.exit(f"check taos -s return unexpect: {rets}")
def doTaos(self): def doTaos(self):
tdLog.info(f"check taos command options...") tdLog.info(f"check taos command options...")
@ -71,10 +67,10 @@ class TDTestCase(TBase):
] ]
# exec # exec
for option in options: for option in options:
rets = etool.runBinFile("taos", f"-s \"alter local '{option}'\";") rlist = self.taos(f"-s \"alter local '{option}'\"")
self.checkQueryOK(rets) self.checkListString(rlist, "Query OK,")
# error # error
etool.runBinFile("taos", f"-s \"alter local 'nocmd check'\";") etool.runBinFile("taos", f"-s \"alter local 'nocmd check'\"")
# help # help
rets = etool.runBinFile("taos", "--help") rets = etool.runBinFile("taos", "--help")