[CRIU] [PATCH] zdtm: handle inherit_fd-s in the rpc mode

Andrei Vagin avagin at virtuozzo.com
Wed Aug 8 08:43:16 MSK 2018


./test//zdtm.py --set inhfd run --all --rpc

Cc: Adrian Reber <areber at redhat.com> 
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/zdtm.py b/test/zdtm.py
index c795490ae..d3b73c4df 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -814,6 +814,16 @@ class criu_rpc:
 			if arg == '--tcp-established':
 				criu.opts.tcp_established = True
 				continue
+			if arg == '--restore-sibling':
+				criu.opts.rst_sibling = True
+				continue
+			if arg == "--inherit-fd":
+				inhfd = criu.opts.inherit_fd.add()
+				key = args.pop(0)
+				fd, key = key.split(":", 1)
+				inhfd.fd = int(fd[3:-1])
+				inhfd.key = key
+				continue
 
 			raise test_fail_exc('RPC for %s required' % arg)
 
-- 
2.14.3



More information about the CRIU mailing list