Commit 072fbc2b authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

tests_fprintd_utils: Print the process output when done

This is particularly useful when using valgrind or address sanitizer to read
the output log
parent 7846359b
......@@ -84,6 +84,12 @@ class TestFprintd(dbusmock.DBusTestCase):
self.addCleanup(process.terminate)
self.addCleanup(process.wait)
def print_proc_log(mock_log):
with open(mock_log.name) as f:
print(f.read())
self.addCleanup(print_proc_log, mock_log)
if sleep:
time.sleep(self.sleep_time)
......
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