Commit ef6e9fcd authored by Tomas Krizek's avatar Tomas Krizek

pytests: print verbose log when kresd init fails

parent df7a7404
......@@ -109,6 +109,8 @@ class Kresd(ContextDecorator):
raise RuntimeError("Kresd crashed with returncode: {}".format(
self.process.returncode))
except (RuntimeError, ConnectionError): # pylint: disable=try-except-raise
with open(self.logfile_path) as log: # print log for debugging
print(log.read())
raise
return self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment