mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
Add test.cases.LsofUds
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
e0819d7c39
commit
765e6f3a1b
1 changed files with 16 additions and 0 deletions
16
src/python/devtest/os/test/cases/LsofUds.py
Normal file
16
src/python/devtest/os/test/cases/LsofUds.py
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from ..ListCmd import ListCmd
|
||||||
|
|
||||||
|
class LsofUds(ListCmd): # export
|
||||||
|
|
||||||
|
def _row_info(self):
|
||||||
|
return (
|
||||||
|
r'lsof +c 15 -U',
|
||||||
|
# COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
||||||
|
# systemd 1 root 45u unix 0xeeb45200 0t0 9856 /run/systemd/journal/stdout type=STREAM
|
||||||
|
"^ *(\S+) +([0-9]+) +(\S+) +(\S+) +(\S+) +(0x[0-9a-f]+) +(\S+) +([0-9]+) +(\S+) +type=(\S+)",
|
||||||
|
[ 'cmd', 'pid', 'user','fd', 'type', 'device', 'size/off','node', 'path', 'socktype' ],
|
||||||
|
[ 'cmd', 'user', 'path', 'socktype' ],
|
||||||
|
[ 'cmd', 'path' ],
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue