diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-08-04 20:21:57 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-08-04 20:21:57 -0700 |
commit | 79c9968ebcce344f7a26e158d6d88330831f8746 (patch) | |
tree | 01f9d81af3f8bd4a6c203de09c410042e0b527db | |
parent | f6d216856f044de7b54450e00858190bc6dafc4f (diff) | |
download | kafka-python-79c9968ebcce344f7a26e158d6d88330831f8746.tar.gz |
Dump fixture logs on failure
-rw-r--r-- | test/fixtures.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fixtures.py b/test/fixtures.py index c129adb..e50ce12 100644 --- a/test/fixtures.py +++ b/test/fixtures.py @@ -156,6 +156,7 @@ class ZookeeperFixture(Fixture): timeout = min(timeout, max(end_at - time.time(), 0)) if self.child.wait_for(r"binding to port", timeout=timeout): break + self.child.dump_logs() self.child.stop() timeout *= 2 time.sleep(backoff) @@ -305,6 +306,7 @@ class KafkaFixture(Fixture): if self.child.wait_for(r"\[Kafka Server %d\], Started" % self.broker_id, timeout=timeout): break + self.child.dump_logs() self.child.stop() timeout *= 2 time.sleep(backoff) |