From eb3d51d20c0948d05bd57e22511035fd9abcce8e Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 2 May 2025 15:40:10 +0200 Subject: [PATCH] removed -9 to kill with cleanup --- tests/scripts/test_simulators.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/scripts/test_simulators.py b/tests/scripts/test_simulators.py index 370ecc1b9..c3cac14c4 100644 --- a/tests/scripts/test_simulators.py +++ b/tests/scripts/test_simulators.py @@ -33,10 +33,9 @@ def killProcess(name): Log(Fore.GREEN, f"Killing '{name}' processes with PIDs: {', '.join(pids)}") for pid in pids: try: - cmd = f"kill -9 {pid}" - p = subprocess.run(['kill', '-9', pid]) + p = subprocess.run(['kill', pid]) if p.returncode != 0 and bool(checkIfProcessRunning(name)): - raise RuntimeException(f"'kill -9' failed for {name} with pid {pid}") + raise RuntimeException(f"Could not kill {name} with pid {pid}") except Exception as e: Log(Fore.RED, f"Failed to kill process {name} pid:{pid}. Exception occured: [code:{e}, msg:{e.stderr}]") raise