From ee759096e835ee81c1a66759396cd2ad9c3c4001 Mon Sep 17 00:00:00 2001 From: smbaker Date: Wed, 29 Jun 2011 15:42:36 -0700 Subject: [PATCH] fix sfiprocess output so xmlrpctracker sees the whole output, instead of just part --- sface/sfiprocess.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index bef0902..6f2140b 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -27,11 +27,12 @@ class SfiProcess(QObject): self.process.setEnvironment(env) self.connect(self.process, SIGNAL("finished(int, QProcess::ExitStatus)"), self.processFinished) - + self.xmlrpctracker = XmlrpcTracker() - # in case self.output is read by the XmlrpcTracker before any - # readyReadStandardOutput signal - self.output = '' + + # holds aggregate output from processStandardOutput(); used by xmlrpc + # tracker. + self.output = "" self.connect(self.process, SIGNAL("readyReadStandardOutput()"), self.processStandardOutput) @@ -55,6 +56,7 @@ class SfiProcess(QObject): def processStandardOutput(self): output = self.process.readAllStandardOutput() + self.output = self.output + output if config.debug: print output @@ -136,6 +138,7 @@ class SfiProcess(QObject): self.start() def start(self): + self.output = "" self.trace_command() self.process.start(self.exe, self.args) -- 2.43.0