diff options
| author | Alan Conway <aconway@apache.org> | 2010-06-04 15:39:01 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-06-04 15:39:01 +0000 |
| commit | 888a7d9b4d896314a4515dfb0c9f172b87e0a1cd (patch) | |
| tree | c9cf721000749a9faed1bd7b2d920b55d3b14fd6 /qpid/python | |
| parent | 4424bc7676367fef809d0de1fb720c1c50c6bd08 (diff) | |
| download | qpid-python-888a7d9b4d896314a4515dfb0c9f172b87e0a1cd.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@951452 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/brokertest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/python/qpid/brokertest.py b/qpid/python/qpid/brokertest.py index cd16aa14e0..92a94a8d38 100644 --- a/qpid/python/qpid/brokertest.py +++ b/qpid/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): |
