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()