Check invalid logs after exiting process.
This commit is contained in:
parent
1c7fd7d80e
commit
4b683cdd8f
@ -183,5 +183,5 @@ def quteproc(qapp, httpbin):
|
||||
proc = QuteProc(httpbin)
|
||||
proc.start()
|
||||
yield proc
|
||||
proc.after_test()
|
||||
proc.terminate()
|
||||
proc.after_test()
|
||||
|
@ -134,15 +134,13 @@ class Process(QObject):
|
||||
unexpected output lines earlier.
|
||||
"""
|
||||
self._data.clear()
|
||||
if not self.is_running():
|
||||
print("Restarting process...")
|
||||
self.start()
|
||||
raise ProcessExited
|
||||
if self._invalid:
|
||||
raise InvalidLine
|
||||
|
||||
def terminate(self):
|
||||
"""Clean up and shut down the process."""
|
||||
if not self.is_running():
|
||||
raise ProcessExited
|
||||
self.proc.terminate()
|
||||
self.proc.waitForFinished()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user