[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Add support for showing the test progress
commit da338188f3df1775131534fa70a7c7102dc46e3a
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date: Thu Jan 19 16:31:17 2017 +0000
Add support for showing the test progress
---
ooni/nettest.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ooni/nettest.py b/ooni/nettest.py
index edba448c..e10aacab 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -615,6 +615,11 @@ class NetTest(object):
for test_class, test_cases in self.testCases:
# Initialize Input Processor
test_instance = test_class()
+ inputs = yield defer.maybeDeferred(
+ test_class().getInputProcessor
+ )
+ for _ in inputs:
+ self._totalInputs += 1
test_class.inputs = yield defer.maybeDeferred(
test_instance.getInputProcessor
)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits