commit e9d22b1914df503ae6f238abfc3ece2bac2ddf04 Author: juga0 <juga> Date: Sat Sep 19 20:54:36 2015 +0000
add processDirector as a class attribute --- ooni/templates/process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ooni/templates/process.py b/ooni/templates/process.py index efe53d3..a3c74ff 100644 --- a/ooni/templates/process.py +++ b/ooni/templates/process.py @@ -91,6 +91,7 @@ class ProcessTest(NetTestCase):
requiresRoot = False timeout = 5 + processDirector = None
def _setUp(self): super(ProcessTest, self)._setUp() @@ -108,6 +109,6 @@ class ProcessTest(NetTestCase): def run(self, command, finished=None, env={}, path=None, usePTY=0): d = defer.Deferred() d.addCallback(self.processEnded, command) - processDirector = ProcessDirector(d, finished, self.timeout) + self.processDirector = ProcessDirector(d, finished, self.timeout) reactor.spawnProcess(self.processDirector, command[0], command, env=env, path=path, usePTY=usePTY) return d
tor-commits@lists.torproject.org