zdtm: fix missplacement of err=True

There is no 'err' argument for print(), it should be in grep_errors() in
line below.

Fixes: bed670f62 ("zdtm: print tails of all logs if a test has failed")
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
Pavel Tikhomirov 2022-02-18 18:13:14 +03:00 committed by Andrei Vagin
parent 6b842635bd
commit ef98a71b16

View file

@ -1485,8 +1485,8 @@ class criu:
self.__page_server_p = None
if self.__dump_process:
self.__dump_process.terminate()
print("criu dump exited with %s" % self.__dump_process.wait(), err=True)
grep_errors(os.path.join(self.__ddir(), "dump.log"))
print("criu dump exited with %s" % self.__dump_process.wait())
grep_errors(os.path.join(self.__ddir(), "dump.log"), err=True)
self.__dump_process = None
if self.__img_streamer_process:
self.__img_streamer_process.terminate()