test.cases.ProcMounts: Add ":" to device name regex

Devices may be called ubi0:rescue0 or so.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2022-12-07 09:50:37 +01:00
commit 0f723cfd1b

View file

@ -10,7 +10,7 @@ class MountList(ListCmd): # export
#r"/bin/cat /proc/mounts | sed 's/,*size=[0-9]\+[a-z]*//g; s/,*nr_inodes=[0-9]\+//g; s/,,*/,/g'",
r"/bin/cat /proc/mounts",
# proc /proc proc rw,relatime 0 0
"^ *([a-zA-Z0-9/]+) (/[a-zA-Z0-9/]+) +(\S+) +(\S+) +([0-9]+) +([0-9]+)",
"^ *([a-zA-Z0-9/:]+) (/[a-zA-Z0-9/]+) +(\S+) +(\S+) +([0-9]+) +([0-9]+)",
[ 'dev', 'mp', 'type','opts','dump', 'fsck'],
[ 'dev', 'mp', 'type','opts' ],
[ 'mp', ]