tests: Clear captured output between tests.

This commit is contained in:
Florian Bruhin 2015-12-16 23:07:42 +01:00
parent a157f822d6
commit 982e78249a

View File

@ -215,6 +215,7 @@ class Process(QObject):
Also checks self._invalid so the test counts as failed if there were
unexpected output lines earlier.
"""
self.captured_log = []
if self._invalid:
# Wait for a bit so the full error has a chance to arrive
time.sleep(1)