Add some misc fixes
Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/b7fd08b2 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/b7fd08b2 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/b7fd08b2 Branch: refs/heads/master Commit: b7fd08b24b5f5ecce653f94614a4fa0bc2346d2e Parents: fca6138 Author: Thomas Jackson <[email protected]> Authored: Fri Jan 23 14:38:12 2015 -0800 Committer: Thomas Jackson <[email protected]> Committed: Fri Jan 23 14:38:12 2015 -0800 ---------------------------------------------------------------------- tsqa/environment.py | 4 ++++ tsqa/utils.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/b7fd08b2/tsqa/environment.py ---------------------------------------------------------------------- diff --git a/tsqa/environment.py b/tsqa/environment.py index 0faad5e..70300ee 100644 --- a/tsqa/environment.py +++ b/tsqa/environment.py @@ -5,11 +5,13 @@ import copy import shutil import tsqa.utils import sys +import time import tsqa.configs import tsqa.utils import logging +log = logging.getLogger(__name__) class EnvironmentFactory(object): ''' @@ -243,12 +245,14 @@ class Environment: stdout=logfile, stderr=logfile, ) + start = time.time() # TODO: more specific exception? try: tsqa.utils.poll_interfaces(self.hostports) except: self.stop() # make sure to stop the daemons raise + log.debug('traffic_cop took {0}s to start up'.format(time.time() - start)) self.cop.poll() if self.cop.returncode is not None: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/b7fd08b2/tsqa/utils.py ---------------------------------------------------------------------- diff --git a/tsqa/utils.py b/tsqa/utils.py index a12329a..28f9e45 100644 --- a/tsqa/utils.py +++ b/tsqa/utils.py @@ -38,7 +38,6 @@ def poll_interfaces(hostports, **kwargs): try: s = socket.create_connection((hostname, port), timeout=connect_timeout_sec, - source_address=('127.0.0.1', 0), # force the request to come from loopback ) s.close() hostports.remove(hostport)
