2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

zdtm: print tails of all logs if a test has failed

Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2021-12-22 17:08:16 -08:00
parent f650987469
commit ebd03383f2

View File

@ -1475,17 +1475,17 @@ class criu:
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"))
grep_errors(os.path.join(self.__ddir(), "lazy-pages.log"), err=True)
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"))
grep_errors(os.path.join(self.__ddir(), "page-server.log"), err=True)
self.__page_server_p = None
if self.__dump_process:
self.__dump_process.terminate()
print("criu dump exited with %s" % self.__dump_process.wait())
print("criu dump exited with %s" % self.__dump_process.wait(), err=True)
grep_errors(os.path.join(self.__ddir(), "dump.log"))
self.__dump_process = None
if self.__img_streamer_process: