From 37eafc8d91a5357d0635c601c59d6ec06cae24bb Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Fri, 10 Sep 2021 16:51:37 +0800 Subject: [PATCH] [TD-6592]Using Python Fabric to Server Conf Tasks --- tests/pytest/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pytest/test.py b/tests/pytest/test.py index 9461d6f706..bdc7fe2c20 100644 --- a/tests/pytest/test.py +++ b/tests/pytest/test.py @@ -18,6 +18,7 @@ import getopt import subprocess import time from distutils.log import warn as printf +from fabric2 import Connection from util.log import * from util.dnodes import * @@ -122,10 +123,12 @@ if __name__ == "__main__": host = masterIp tdLog.info("Procedures for tdengine deployed in %s" % (host)) - print(windows) if windows: tdCases.logSql(logSql) 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( host="%s"%(host), config="C:\\TDengine\\cfg") -- GitLab