[tor-commits] [ooni-probe/master] Fix lantern test

art at torproject.org art at torproject.org
Fri Apr 29 09:42:23 UTC 2016


commit a9e003e9cd6cc9a2767ab567f6215fb2d92cf603
Author: Arturo Filastò <art at fuffa.org>
Date:   Fri Dec 11 11:39:59 2015 +0100

    Fix lantern test
---
 ooni/nettests/third_party/lantern.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ooni/nettests/third_party/lantern.py b/ooni/nettests/third_party/lantern.py
index c7173ed..1f1b3b0 100644
--- a/ooni/nettests/third_party/lantern.py
+++ b/ooni/nettests/third_party/lantern.py
@@ -4,7 +4,7 @@ from twisted.python import usage
 from twisted.web.client import ProxyAgent, readBody
 from ooni.templates.process import ProcessTest, ProcessDirector
 from ooni.utils import log
-from ooni.errors import handleAllFailures, TaskTimedOut
+from ooni.errors import handleAllFailures
 import os.path
 from os import getenv
 
@@ -34,7 +34,7 @@ class LanternProcessDirector(ProcessDirector):
     def outReceived(self, data):
         self.stdout += data
         # output received, see if we have bootstrapped
-        if not self.bootstrapped.called and "client (http) proxy at" in self.stdout:
+        if not self.bootstrapped.called and "Connected to proxy on localhost" in self.stdout:
             log.debug("Bootstrap Detected")
             self.cancelTimer()
             self.bootstrapped.callback("bootstrapped")
@@ -62,7 +62,7 @@ class LanternTest(ProcessTest):
     requiredOptions = ['url']
 
     def setUp(self):
-        self.command = ["lantern_linux", "--headless"]
+        self.command = ["lantern", "--headless"]
         self.d = defer.Deferred()
         self.processDirector = LanternProcessDirector(self.d, timeout=self.timeout)
         self.d.addCallback(self.processEnded, self.command)





More information about the tor-commits mailing list