commit 138891558e46983a9cac4faafd7bbe533f9eb7d6
Author: juga0 <juga>
Date: Sat Sep 19 19:53:45 2015 +0000
add more spawnProcess arguments to run
---
ooni/templates/process.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ooni/templates/process.py b/ooni/templates/process.py
index 1c5cb1d..efe53d3 100644
--- a/ooni/templates/process.py
+++ b/ooni/templates/process.py
@@ -105,9 +105,9 @@ class ProcessTest(NetTestCase):
}
return result
- def run(self, command, finished=None):
+ 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)
- reactor.spawnProcess(processDirector, command[0], command)
+ reactor.spawnProcess(self.processDirector, command[0], command, env=env, path=path, usePTY=usePTY)
return d