From e1b0aef62b82f19b27f883d3a31eaacd0a96de0f Mon Sep 17 00:00:00 2001 From: Alice Date: Tue, 25 Nov 2025 14:55:04 +0100 Subject: [PATCH] debug --- tests/scripts/test_simulators.py | 1 - tests/scripts/utils_for_test.py | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/scripts/test_simulators.py b/tests/scripts/test_simulators.py index e961a1ad2..9b535c29d 100644 --- a/tests/scripts/test_simulators.py +++ b/tests/scripts/test_simulators.py @@ -60,7 +60,6 @@ def startCmdTestsForAll(args, fp): cmd = ['tests', '--abort', args.markers, '-s'] Log(LogLevel.INFOBLUE, f'Starting Cmd Tests for {server}') - checkIfProcessRunning('DetectorServer_virtual', fp) cleanup(fp) startDetectorVirtualServer(name=server, num_mods=num_mods, fp=fp) startReceiver(num_mods, fp) diff --git a/tests/scripts/utils_for_test.py b/tests/scripts/utils_for_test.py index 5af1b8f26..1ed6039d6 100644 --- a/tests/scripts/utils_for_test.py +++ b/tests/scripts/utils_for_test.py @@ -63,11 +63,12 @@ def checkIfProcessRunning(processName): #res = subprocess.getoutput(cmd) #Log(LogLevel.INFO, f"mycmd: {res}") #cmd = f"pgrep -f {processName}" - cmd = f"pgrep -f {processName} | xargs -r -I{{}} ps -p {{}} -o pid,ppid,cmd" + #cmd = f"pgrep -f {processName} | xargs -r -I{{}} ps -p {{}} -o pid,ppid,cmd" - res1 = subprocess.getoutput(cmd) - Log(LogLevel.INFO, f"cmd: {res1}") - res = subprocess.getoutput(f"pgrep -f {processName}") + #res1 = subprocess.getoutput(cmd) + #Log(LogLevel.INFO, f"cmd: {res1}") + res = subprocess.getoutput(f"pgrep -f {processName} | xargs -r -I{{}} cat /proc/{{}}/cmdline") + Log(LogLevel.INFO, f"cmd: {res}") return res.strip().splitlines()