pytests: print verbose log when kresd init fails

parent df7a7404
...@@ -109,6 +109,8 @@ class Kresd(ContextDecorator): ...@@ -109,6 +109,8 @@ class Kresd(ContextDecorator):
raise RuntimeError("Kresd crashed with returncode: {}".format( raise RuntimeError("Kresd crashed with returncode: {}".format(
self.process.returncode)) self.process.returncode))
except (RuntimeError, ConnectionError): # pylint: disable=try-except-raise except (RuntimeError, ConnectionError): # pylint: disable=try-except-raise
with open(self.logfile_path) as log: # print log for debugging
print(log.read())
raise raise
return self 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