[tor-commits] [ooni-probe/master] changed report structure for ProcessTest

2016-04-29 Thread art
commit a309440621561c47d4cb7db5b04e73b342d96307
Author: juga0 
Date:   Wed Dec 23 16:51:35 2015 +

changed report structure for ProcessTest
---
 ooni/templates/process.py | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/ooni/templates/process.py b/ooni/templates/process.py
index 7ec4b2e..b7dafdd 100644
--- a/ooni/templates/process.py
+++ b/ooni/templates/process.py
@@ -103,12 +103,10 @@ class ProcessTest(NetTestCase):
 
 def processEnded(self, result, command):
 log.debug("Finished %s: %s" % (command, result))
-key = ' '.join(command)
-self.report[key] = {
-'stdout': result['stdout'],
-'stderr': result['stderr'],
-'exit_reason': result['exit_reason']
-}
+self.report['command_name'] = ' '.join(command)
+self.report['command_stdout'] = result['stdout']
+self.report['command_stderr'] = result['stderr']
+self.report['command_exit_reason'] = result['exit_reason']
 return result
 
 def run(self, command, finished=None, env={}, path=None, usePTY=0):



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [ooni-probe/master] changed report structure for ProcessTest

2016-01-30 Thread art
commit d8b4121c2867c60af03c0129c4b14696c646ad55
Author: juga0 
Date:   Wed Dec 23 16:51:35 2015 +

changed report structure for ProcessTest
---
 ooni/templates/process.py | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/ooni/templates/process.py b/ooni/templates/process.py
index 7ec4b2e..b7dafdd 100644
--- a/ooni/templates/process.py
+++ b/ooni/templates/process.py
@@ -103,12 +103,10 @@ class ProcessTest(NetTestCase):
 
 def processEnded(self, result, command):
 log.debug("Finished %s: %s" % (command, result))
-key = ' '.join(command)
-self.report[key] = {
-'stdout': result['stdout'],
-'stderr': result['stderr'],
-'exit_reason': result['exit_reason']
-}
+self.report['command_name'] = ' '.join(command)
+self.report['command_stdout'] = result['stdout']
+self.report['command_stderr'] = result['stderr']
+self.report['command_exit_reason'] = result['exit_reason']
 return result
 
 def run(self, command, finished=None, env={}, path=None, usePTY=0):



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits