Skip to content

Commit

Permalink
make sure test process can be killed on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NA-Wen committed Sep 14, 2023
1 parent 1245025 commit 0ad26e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chatdev/chat_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def exist_bugs(self) -> tuple[bool, str]:
os.killpg(os.getpgid(process.pid), signal.SIGTERM)
else:
os.kill(process.pid, signal.SIGTERM)
if process.poll() is None:
os.kill(process.pid,signal.CTRL_BREAK_EVENT)

if return_code == 0:
return False, success_info
Expand Down

0 comments on commit 0ad26e3

Please sign in to comment.