mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-09 05:58:05 +02:00
tests_fprintd_utils: Print the process output when done
This is particularly useful when using valgrind or address sanitizer to read the output log
This commit is contained in:
parent
7846359b65
commit
072fbc2b46
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue