From 15f8b60cdb0790617b15c1a6974080649c9247c5 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Mon, 26 Sep 2022 14:49:19 +0800 Subject: [PATCH] os: mac test error --- tests/pytest/util/dnodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 55941bb41c..4bcbe190d5 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -480,6 +480,8 @@ class TDDnode: while(processID): if not platform.system().lower() == 'windows' or (onlyKillOnceWindows == 0 and platform.system().lower() == 'windows'): killCmd = "kill -INT %s > /dev/null 2>&1" % processID + if platform.system().lower() == 'windows': + killCmd = "kill -INT %s > nul 2>&1" % processID os.system(killCmd) onlyKillOnceWindows = 1 time.sleep(1) -- GitLab