diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 0dd4e06fbd643b58d86308df7e91d0c60b596e40..e8d01de3e5a6a5943472778453d3be28f758f18c 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)