[tor-commits] [ooni-probe/master] Add support for showing the test progress
art at torproject.org
art at torproject.org
Fri Sep 22 18:41:06 UTC 2017
commit da338188f3df1775131534fa70a7c7102dc46e3a
Author: Arturo Filastò <arturo at filasto.net>
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
)
More information about the tor-commits
mailing list