mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-28 23:21:18 +01:00
debug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user