[tor-commits] [chutney/master] Include bridge clients in chutney verify

nickm at torproject.org nickm at torproject.org
Sun Jan 11 16:12:03 UTC 2015


commit 1c707d5afbce3800b159dcb50747e6724d0d2870
Author: teor <teor2345 at gmail.com>
Date:   Sat Jan 10 10:53:40 2015 +1100

    Include bridge clients in chutney verify
    
    Test bridge clients using chutney verify, the same way we test clients.
---
 lib/chutney/TorNet.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index ef85e1f..3a28fc3 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -882,7 +882,9 @@ class Network(object):
             tmpdata = randfp.read(DATALEN)
         bind_to = ('127.0.0.1', LISTEN_PORT)
         tt = chutney.Traffic.TrafficTester(bind_to, tmpdata, TIMEOUT)
-        for op in filter(lambda n: n._env['tag'] == 'c', self._nodes):
+        for op in filter(lambda n:
+                         n._env['tag'] == 'c' or n._env['tag'] == 'bc',
+                         self._nodes):
             tt.add(chutney.Traffic.Source(tt, bind_to, tmpdata,
                                           ('localhost',
                                            int(op._env['socksport']))))





More information about the tor-commits mailing list