Commit 3795598c authored by Andrei Vagin's avatar Andrei Vagin Committed by Andrei Vagin

zdtm: handle inherit_fd-s in the rpc mode

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

Cc: Adrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent f194124e
...@@ -821,6 +821,16 @@ class criu_rpc: ...@@ -821,6 +821,16 @@ class criu_rpc:
if arg == '--tcp-established': if arg == '--tcp-established':
criu.opts.tcp_established = True criu.opts.tcp_established = True
continue 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) raise test_fail_exc('RPC for %s required' % arg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment