Skip to content

Commit f72951a

Browse files
committed
Fixed stop run pausing application execution
1 parent de524a6 commit f72951a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ __pycache__/
55
*.pyc
66
.env
77

8-
GEMINI.md
9-
.gemini/
108
.ruff_cache/
119

1210
build/

core/test_runner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from models.run_config import RunConfig
33
import os
44
import 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"
78
MAVEN_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()

0 commit comments

Comments
 (0)