From e164e194b136c08f1095733ef4521534fee47489 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Sat, 28 May 2022 17:03:26 +0800 Subject: [PATCH] fix(os): case run remote taosd --- tests/pytest/util/dnodes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 0dd4e06fbd..e8d01de3e5 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -333,8 +333,11 @@ class TDDnode: i += 1 if i > 50: break + tailCmdStr = 'tail -f ' + if platform.system().lower() == 'windows': + tailCmdStr = 'tail -n +0 -f ' popen = subprocess.Popen( - 'tail -n +0 -f ' + logFile, + tailCmdStr + logFile, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)