File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ __pycache__/
55* .pyc
66.env
77
8- GEMINI.md
9- .gemini /
108.ruff_cache /
119
1210build /
Original file line number Diff line number Diff line change 22from models .run_config import RunConfig
33import os
44import subprocess
5+ from subprocess import DEVNULL
56
67# MAVEN_EXECUTABLE_PATH = "C:\\Users\\meetd\\Downloads\\apache-maven-3.9.10-bin\\apache-maven-3.9.10\\bin\\mvn.cmd"
78MAVEN_EXECUTABLE_PATH = "mvn"
@@ -81,7 +82,7 @@ def stop_test(self):
8182 pid = self .process .processId ()
8283
8384 if pid :
84- subprocess .run (f"taskkill /F /T /PID { pid } " , capture_output = True , text = True )
85+ subprocess .Popen (f"taskkill /F /T /PID { pid } " , shell = True , stdout = DEVNULL )
8586
8687 def _on_stdout (self ):
8788 if self .process :
@@ -105,7 +106,7 @@ def cleanup(self):
105106 if self .process :
106107 pid = self .process .processId ()
107108 if pid :
108- subprocess .run (f"taskkill /F /T /PID { pid } " , capture_output = True , text = True )
109+ subprocess .Popen (f"taskkill /F /T /PID { pid } " , shell = True , stdout = DEVNULL )
109110
110111 try :
111112 self .process .readyReadStandardOutput .disconnect ()
You can’t perform that action at this time.
0 commit comments