From d30557699616d27bed6e2e1fd6bbdf45a8c99d7f Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Fri, 4 Oct 2019 19:36:37 +0300 Subject: [PATCH] zdtm: handle --pre-dump-mode in the rpc mode Signed-off-by: Andrei Vagin --- test/zdtm.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 3c0cee667..571962241 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -912,6 +912,13 @@ class criu_rpc: if arg == '--prev-images-dir': criu.opts.parent_img = args.pop(0) 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': criu.opts.track_mem = True continue @@ -929,7 +936,7 @@ class criu_rpc: inhfd.key = key continue - raise test_fail_exc('RPC for %s required' % arg) + raise test_fail_exc('RPC for %s(%s) required' % (arg, args.pop(0))) @staticmethod def run(action,