2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

zdtm: handle --pre-dump-mode in the rpc mode

Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2019-10-04 19:36:37 +03:00
parent befbbd9bba
commit d305576996

View File

@ -912,6 +912,13 @@ class criu_rpc:
if arg == '--prev-images-dir': if arg == '--prev-images-dir':
criu.opts.parent_img = args.pop(0) criu.opts.parent_img = args.pop(0)
continue continue
if arg == '--pre-dump-mode':
key = args.pop(0)
mode = crpc.rpc.READ
if key == "splice":
mode = crpc.rpc.SPLICE
criu.opts.pre_dump_mode = mode
continue
if arg == '--track-mem': if arg == '--track-mem':
criu.opts.track_mem = True criu.opts.track_mem = True
continue continue
@ -929,7 +936,7 @@ class criu_rpc:
inhfd.key = key inhfd.key = key
continue continue
raise test_fail_exc('RPC for %s required' % arg) raise test_fail_exc('RPC for %s(%s) required' % (arg, args.pop(0)))
@staticmethod @staticmethod
def run(action, def run(action,