Connect read_log before starting process.

This commit is contained in:
Florian Bruhin 2015-10-28 07:12:37 +01:00
parent dfc1782bbf
commit 239bc3bdea

View File

@ -130,11 +130,11 @@ class Process(QObject):
def _start(self):
"""Actually start the process."""
executable, args = self._executable_args()
self.proc.readyRead.connect(self.read_log)
self.proc.start(executable, args)
ok = self.proc.waitForStarted()
assert ok
assert self.is_running()
self.proc.readyRead.connect(self.read_log)
def after_test(self):
"""Clean up data after each test.