未验证 提交 38813628 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1772 from taosdata/hotfix/fix-test-py-to-support-stevens-simpletest

fix test.py to support steven's simpletest_no_sudo.sh 
...@@ -34,12 +34,12 @@ python3 ./test.py $1 -f table/db_table.py ...@@ -34,12 +34,12 @@ python3 ./test.py $1 -f table/db_table.py
python3 ./test.py -s $1 python3 ./test.py -s $1
sleep 1 sleep 1
python3 ./test.py $1 -f import_merge/importDataLastTO.py #python3 ./test.py $1 -f import_merge/importDataLastTO.py
python3 ./test.py -s $1 #python3 ./test.py -s $1
sleep 1 #sleep 1
python3 ./test.py $1 -f import_merge/importDataLastT.py #python3 ./test.py $1 -f import_merge/importDataLastT.py
python3 ./test.py -s $1 #python3 ./test.py -s $1
sleep 1 #sleep 1
python3 ./test.py $1 -f import_merge/importDataTO.py python3 ./test.py $1 -f import_merge/importDataTO.py
python3 ./test.py -s $1 python3 ./test.py -s $1
sleep 1 sleep 1
......
...@@ -83,36 +83,35 @@ if __name__ == "__main__": ...@@ -83,36 +83,35 @@ if __name__ == "__main__":
tdLog.exit('stop All dnodes') tdLog.exit('stop All dnodes')
tdDnodes.init(deployPath)
tdDnodes.setTestCluster(testCluster)
tdDnodes.setValgrind(valgrind)
tdDnodes.stopAll()
tdDnodes.deploy(1)
tdDnodes.start(1)
if masterIp == "": if masterIp == "":
tdDnodes.init(deployPath) host='127.0.0.1'
tdDnodes.setTestCluster(testCluster) else:
tdDnodes.setValgrind(valgrind) host=masterIp
if testCluster: tdLog.notice("Procedures for tdengine deployed in %s" % (host))
tdLog.notice("Procedures for testing cluster")
if fileName == "all": if testCluster:
tdCases.runAllCluster() tdLog.notice("Procedures for testing cluster")
else: if fileName == "all":
tdCases.runOneCluster(fileName) tdCases.runAllCluster()
else: else:
tdLog.notice("Procedures for testing self-deployment") tdCases.runOneCluster(fileName)
tdDnodes.stopAll()
tdDnodes.deploy(1)
tdDnodes.start(1)
conn = taos.connect(
host='127.0.0.1',
config=tdDnodes.getSimCfgPath())
if fileName == "all":
tdCases.runAllLinux(conn)
else:
tdCases.runOneLinux(conn, fileName)
conn.close()
else: else:
tdLog.notice("Procedures for tdengine deployed in %s" % (masterIp)) tdLog.notice("Procedures for testing self-deployment")
cfgPath = "../../build/test/cfg" # was: tdDnodes.getSimCfgPath() conn = taos.connect(
conn = taos.connect(host=masterIp, config=cfgPath) host,
config=tdDnodes.getSimCfgPath())
if fileName == "all": if fileName == "all":
tdCases.runAllWindows(conn) tdCases.runAllLinux(conn)
else: else:
tdCases.runOneWindows(conn, fileName) tdCases.runOneLinux(conn, fileName)
conn.close()
conn.close()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册