This commit is contained in:
2025-11-25 14:55:04 +01:00
parent cdef349561
commit e1b0aef62b
2 changed files with 5 additions and 5 deletions

View File

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

View File

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