[CRIU] [PATCH] test: rpc: fix log_level in test.c and add log_level to test.py

Ruslan Kuprieiev kupruser at gmail.com
Sun Oct 13 14:10:45 PDT 2013


Hi!

Added "has_log_level = true" to test.c, so "log_level = 4" would have effect.
Also added log_level to test.py, for symmetry with test.c.

Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 test/rpc/test.c  | 1 +
 test/rpc/test.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/test/rpc/test.c b/test/rpc/test.c
index 46cabc1..4481204 100644
--- a/test/rpc/test.c
+++ b/test/rpc/test.c
@@ -100,6 +100,7 @@ int main()
 	req.opts->images_dir_fd		= dir_fd;
 	req.opts->has_shell_job		= true;
 	req.opts->shell_job		= true;
+	req.opts->has_log_level		= true;
 	req.opts->log_level		= 4;
 
 	/*
diff --git a/test/rpc/test.py b/test/rpc/test.py
index dcae3d1..5c30ef2 100755
--- a/test/rpc/test.py
+++ b/test/rpc/test.py
@@ -16,6 +16,7 @@ req			= rpc.criu_req()
 req.type		= rpc.DUMP
 req.opts.leave_running	= True
 req.opts.shell_job	= True
+req.opts.log_level	= 4
 
 if not os.path.exists('imgs_py'):
 	os.makedirs('imgs_py')
-- 
1.8.1.2



More information about the CRIU mailing list