summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-06-04 15:39:01 +0000
committerAlan Conway <aconway@apache.org>2010-06-04 15:39:01 +0000
commit6396cbe14c6fdec35ceaa0fa697541ec7da62358 (patch)
treebb521f1243ccdd6b7e5d69ef676f390a387de9ca /python
parentfdbf2377d6604a9c78764f213e86d49db6b29a8a (diff)
downloadqpid-python-6396cbe14c6fdec35ceaa0fa697541ec7da62358.tar.gz
Fixed sporadic failure of cluster_tests.py sasl_test
- added missing initializer for cluster::Connection::inConnectionNegotiation - brokertest.py: fixed formatting of log excerpt in exceptions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951452 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/brokertest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py
index cd16aa14e0..92a94a8d38 100644
--- a/python/qpid/brokertest.py
+++ b/python/qpid/brokertest.py
@@ -87,10 +87,10 @@ def error_line(filename, n=1):
try:
for l in f:
if len(result) == n: result.pop(0)
- result.append("\n "+l)
+ result.append(" "+l)
finally: f.close()
except: return ""
- return ":" + "".join(result)
+ return ":\n" + "".join(result)
def retry(function, timeout=10, delay=.01):
"""Call function until it returns True or timeout expires.
@@ -301,7 +301,7 @@ class Broker(Popen):
try: self._port = int(self.stdout.readline())
except ValueError:
raise Exception("Can't get port for broker %s (%s)%s" %
- (self.name, self.pname, error_line(self.log)))
+ (self.name, self.pname, error_line(self.log,4)))
return self._port
def unexpected(self,msg):