fix:add config dir for libtaos in sml_test
This commit is contained in:
parent
71a10b914f
commit
060fc941b5
|
@ -15,6 +15,9 @@ sys.path.append("./7-tmq")
|
|||
from tmqCommon import *
|
||||
|
||||
class TDTestCase:
|
||||
updatecfgDict = {'clientCfg': {'smlChildTableName': 'dataModelName', 'fqdn': 'localhost'}, 'fqdn': 'localhost'}
|
||||
print("===================: ", updatecfgDict)
|
||||
|
||||
def init(self, conn, logSql, replicaVar=1):
|
||||
self.replicaVar = int(replicaVar)
|
||||
tdLog.debug(f"start to excute {__file__}")
|
||||
|
@ -22,8 +25,10 @@ class TDTestCase:
|
|||
#tdSql.init(conn.cursor(), logSql) # output sql.txt file
|
||||
|
||||
def checkFileContent(self, dbname="sml_db"):
|
||||
simClientCfg="%s/taos.cfg"%tdDnodes.getSimCfgPath()
|
||||
buildPath = tdCom.getBuildPath()
|
||||
cmdStr = '%s/build/bin/sml_test'%(buildPath)
|
||||
cmdStr = '%s/build/bin/sml_test %s'%(buildPath, simClientCfg)
|
||||
print("cmdStr:", cmdStr)
|
||||
tdLog.info(cmdStr)
|
||||
ret = os.system(cmdStr)
|
||||
if ret != 0:
|
||||
|
|
|
@ -1190,6 +1190,10 @@ int sml_ts2385_Test() {
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if(argc == 2){
|
||||
taos_options(TSDB_OPTION_CONFIGDIR, argv[1]);
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
ret = sml_ts2385_Test();
|
||||
ASSERT(!ret);
|
||||
|
|
Loading…
Reference in New Issue