From 4b683cdd8f0adb22ae97a8a6dc164a35f95d3c51 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 27 Oct 2015 07:14:40 +0100 Subject: [PATCH] Check invalid logs after exiting process. --- tests/integration/quteprocess.py | 2 +- tests/integration/testprocess.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/integration/quteprocess.py b/tests/integration/quteprocess.py index e23367db6..b6d6b3067 100644 --- a/tests/integration/quteprocess.py +++ b/tests/integration/quteprocess.py @@ -183,5 +183,5 @@ def quteproc(qapp, httpbin): proc = QuteProc(httpbin) proc.start() yield proc - proc.after_test() proc.terminate() + proc.after_test() diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 42a41f701..1eef2eef2 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -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()