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): def _start(self):
"""Actually start the process.""" """Actually start the process."""
executable, args = self._executable_args() executable, args = self._executable_args()
self.proc.readyRead.connect(self.read_log)
self.proc.start(executable, args) self.proc.start(executable, args)
ok = self.proc.waitForStarted() ok = self.proc.waitForStarted()
assert ok assert ok
assert self.is_running() assert self.is_running()
self.proc.readyRead.connect(self.read_log)
def after_test(self): def after_test(self):
"""Clean up data after each test. """Clean up data after each test.