fix(os): case run remote taosd

This commit is contained in:
afwerar 2022-05-28 17:03:26 +08:00
parent 06f72448aa
commit e164e194b1
1 changed files with 4 additions and 1 deletions

View File

@ -333,8 +333,11 @@ class TDDnode:
i += 1 i += 1
if i > 50: if i > 50:
break break
tailCmdStr = 'tail -f '
if platform.system().lower() == 'windows':
tailCmdStr = 'tail -n +0 -f '
popen = subprocess.Popen( popen = subprocess.Popen(
'tail -n +0 -f ' + logFile, tailCmdStr + logFile,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True) shell=True)