Browse Source

Merge remote-tracking branch 'teor/debug-on-fail'

Nick Mathewson 7 years ago
parent
commit
984f672498
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/chutney/TorNet.py

+ 4 - 0
lib/chutney/TorNet.py

@@ -908,6 +908,10 @@ class Network(object):
         print("Verifying data transmission:")
         status = self._verify_traffic()
         print("Transmission: %s" % ("Success" if status else "Failure"))
+        if not status:
+            # TODO: allow the debug flag to be passed as an argument to
+            # src/test/test-network.sh and chutney
+            print("Set 'debug_flag = True' in Traffic.py to diagnose.")
         return status
 
     def _verify_traffic(self):