[1/2] zdtm.py: also check that sharing options are restored for mounts

Submitted by Pavel Tikhomirov on June 25, 2018, 12:53 p.m.

Details

Message ID 20180625125337.22747-2-ptikhomirov@virtuozzo.com
State Accepted
Series "zdtm: lets check shared options preserve"
Headers show

Commit Message

Pavel Tikhomirov June 25, 2018, 12:53 p.m.
We already check (root, mountpoint) pairs preserve, do the same for
(root, mountpoint, shared, slave) fours.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index c795490ae..631e0c2ce 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1326,7 +1326,7 @@  do_sbs = False
 
 		cmounts = []
 		try:
-			r = re.compile("^\S+\s\S+\s\S+\s(\S+)\s(\S+)")
+			r = re.compile("^\S+\s\S+\s\S+\s(\S+)\s(\S+)\s\S+\s[^-]*?(shared)?[^-]*?(master)?[^-]*?-")
 			for m in open("/proc/%s/root/proc/%s/mountinfo" % (test.getpid(), pid)):
 				cmounts.append(r.match(m).groups())
 		except IOError as e: