[7/7] zdtm: use --check-mounts by default

Submitted by Pavel Tikhomirov on Feb. 7, 2019, 12:17 p.m.

Details

Message ID 20190207121754.19667-8-ptikhomirov@virtuozzo.com
State New
Series "mount: check mounts after restoring"
Headers show

Commit Message

Pavel Tikhomirov Feb. 7, 2019, 12:17 p.m.
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 test/zdtm.py | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index 6dbf8c998..906268345 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -868,6 +868,9 @@  join_ns_file = '/run/netns/zdtm_netns'
 				inhfd.fd = int(fd[3:-1])
 				inhfd.key = key
 				continue
+			if arg == "--check-mounts":
+				criu.opts.check_mounts = True
+				continue
 
 			raise test_fail_exc('RPC for %s required' % arg)
 
@@ -1208,6 +1211,8 @@  join_ns_file = '/run/netns/zdtm_netns'
 			self.__lazy_pages_p = self.__criu_act("lazy-pages", opts = lp_opts, nowait = True)
 			r_opts += ["--lazy-pages"]
 
+		r_opts += ['--check-mounts']
+
 		if self.__leave_stopped:
 			r_opts += ['--leave-stopped']