From 704fc2562291ef3a9387b169869d1fa37e1f4807 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Wed, 25 May 2022 19:43:09 +0800 Subject: [PATCH] fix(os): run case on win --- tests/pytest/test.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/pytest/test.py b/tests/pytest/test.py index 5c9dae688f..af6191e170 100644 --- a/tests/pytest/test.py +++ b/tests/pytest/test.py @@ -148,9 +148,11 @@ if __name__ == "__main__": tdDnodes.deploy(1,{}) tdDnodes.startWin(1) else: - remote_conn = Connection("root@%s"%host) - with remote_conn.cd('/var/lib/jenkins/workspace/TDinternal/community/tests/pytest'): - remote_conn.run("python3 ./test.py") + # remote_conn = Connection("root@%s"%host) + # with remote_conn.cd('/var/lib/jenkins/workspace/TDinternal/community/tests/pytest'): + # remote_conn.run("python3 ./test.py") + os.system("docker exec -d tdengine_test bash -c \"cd ~/TDinternal/community/tests/pytest && python3 ./test.py\"") + time.sleep(2) tdDnodes.init(deployPath) conn = taos.connect( host="%s" % (host), -- GitLab