[CRIU] [PATCH] zdtm: grep errors from page-server.log and lazy-pages.log

Andrei Vagin avagin at openvz.org
Mon Sep 4 20:44:14 MSK 2017


This can help to investigate logs from Mr Jenkins.

Cc: Mike Rapoport <rppt at linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin at openvz.org>
---
 test/zdtm.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/zdtm.py b/test/zdtm.py
index c43dca7..85d60ba 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -850,11 +850,13 @@ class criu:
 	def fini(self):
 		if self.__lazy_pages_p:
 			ret = self.__lazy_pages_p.wait()
+		        grep_errors(os.path.join(self.__ddir(), "lazy-pages.log"))
 			self.__lazy_pages_p = None
 			if ret:
 				raise test_fail_exc("criu lazy-pages exited with %s" % ret)
 		if self.__page_server_p:
 			ret = self.__page_server_p.wait()
+		        grep_errors(os.path.join(self.__ddir(), "page-server.log"))
 			self.__page_server_p = None
 			if ret:
 				raise test_fail_exc("criu page-server exited with %s" % ret)
@@ -1043,6 +1045,7 @@ class criu:
 
 		if self.__page_server_p:
 			ret = self.__page_server_p.wait()
+		        grep_errors(os.path.join(self.__ddir(), "page-server.log"))
 			self.__page_server_p = None
 			if ret:
 				raise test_fail_exc("criu page-server exited with %d" % ret)
@@ -1108,10 +1111,12 @@ class criu:
 		if self.__lazy_pages_p:
 			self.__lazy_pages_p.terminate()
 			print "criu lazy-pages exited with %s" % self.__lazy_pages_p.wait()
+		        grep_errors(os.path.join(self.__ddir(), "lazy-pages.log"))
 			self.__lazy_pages_p = None
 		if self.__page_server_p:
 			self.__page_server_p.terminate()
 			print "criu page-server exited with %s" % self.__page_server_p.wait()
+		        grep_errors(os.path.join(self.__ddir(), "page-server.log"))
 			self.__page_server_p = None
 
 
-- 
2.9.4



More information about the CRIU mailing list