os: mac test error

This commit is contained in:
afwerar 2022-09-26 14:49:19 +08:00
parent 91b35a0b62
commit 15f8b60cdb
1 changed files with 2 additions and 0 deletions

View File

@ -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)