提交 e9ece6a7 编写于 作者: L liuyq-617

[TD-6592]Using Python Fabric to Server Conf Tasks

上级 f6aa229d
...@@ -18,6 +18,7 @@ import getopt ...@@ -18,6 +18,7 @@ import getopt
import subprocess import subprocess
import time import time
from distutils.log import warn as printf from distutils.log import warn as printf
from fabric2 import Connection
from util.log import * from util.log import *
from util.dnodes import * from util.dnodes import *
...@@ -122,10 +123,12 @@ if __name__ == "__main__": ...@@ -122,10 +123,12 @@ if __name__ == "__main__":
host = masterIp host = masterIp
tdLog.info("Procedures for tdengine deployed in %s" % (host)) tdLog.info("Procedures for tdengine deployed in %s" % (host))
print(windows)
if windows: if windows:
tdCases.logSql(logSql) tdCases.logSql(logSql)
tdLog.info("Procedures for testing self-deployment") tdLog.info("Procedures for testing self-deployment")
remote_conn = Connection("root@%s"%host)
with remote_conn.cd('/root/TDinternal/community/tests/pytest'):
remote_conn.run("python3 ./test.py")
conn = taos.connect( conn = taos.connect(
host="%s"%(host), host="%s"%(host),
config="C:\\TDengine\\cfg") config="C:\\TDengine\\cfg")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册