[2/2] test: lazy-migration: don't try to run pre-dump with --lazy-pages

Submitted by Mike Rapoport on Dec. 10, 2018, 3:44 p.m.

Details

Message ID 1544456651-20935-3-git-send-email-rppt@linux.ibm.com
State Accepted
Series "fix faiulures of lazy-migration Jenkins job"
Headers show

Commit Message

Mike Rapoport Dec. 10, 2018, 3:44 p.m.
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index d151c86..f6402c2 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1145,7 +1145,7 @@  class criu:
 			a_opts += ['--empty-ns', 'net']
 
 		nowait = False
-		if self.__lazy_migrate:
+		if self.__lazy_migrate and action == "dump":
 			a_opts += ["--lazy-pages", "--port", "12345"]
 			nowait = True
 		self.__dump_process = self.__criu_act(action, opts = a_opts + opts, nowait = nowait)