Skip to content

Commit

Permalink
Fix the issue of too many kill help info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andlyn666 committed Dec 12, 2023
1 parent d09e551 commit 2f4821a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scenarios/src/environment/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def kill_process_by_port(port):
command = f'FOR /F "tokens=5 delims= " %P IN (\'netstat -a -n -o ^| findstr :{port}\') DO TaskKill.exe /F /PID %P'
os.system(command)
else:
command = f'lsof -ti :{port} | xargs kill -9'
command = f'lsof -ti :{port} | xargs -r kill -9'
subprocess.call(command, shell=True)


Expand Down

0 comments on commit 2f4821a

Please sign in to comment.