summaryrefslogtreecommitdiff
path: root/test/fixtures.py
diff options
context:
space:
mode:
authorMark Roberts <wizzat@gmail.com>2014-04-23 02:04:04 -0700
committerMark Roberts <wizzat@gmail.com>2014-04-23 02:04:04 -0700
commit7e5c847aa91de8786c08e8424519ddd22d5c67e8 (patch)
treeea1edb1092284e4d82c6c0c5d0b2728b509f2f1a /test/fixtures.py
parent6628c109b786cfc3c429400eaa258298bcc77ec0 (diff)
downloadkafka-python-7e5c847aa91de8786c08e8424519ddd22d5c67e8.tar.gz
Add support for kafka 0.8.1
Diffstat (limited to 'test/fixtures.py')
-rw-r--r--test/fixtures.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/fixtures.py b/test/fixtures.py
index af4c145..7b032f1 100644
--- a/test/fixtures.py
+++ b/test/fixtures.py
@@ -26,9 +26,13 @@ class Fixture(object):
# ./kafka-src/bin/kafka-run-class.sh is the authority.
jars = ["."]
- # assume all dependencies have been packaged into one jar with sbt-assembly's task "assembly-package-dependency"
+ # 0.8.0 build path, should contain the core jar and a deps jar
jars.extend(glob.glob(cls.kafka_root + "/core/target/scala-%s/*.jar" % cls.scala_version))
+ # 0.8.1 build path, should contain the core jar and several dep jars
+ jars.extend(glob.glob(cls.kafka_root + "/core/build/libs/*.jar"))
+ jars.extend(glob.glob(cls.kafka_root + "/core/build/dependant-libs-%s/*.jar" % cls.scala_version))
+
jars = filter(os.path.exists, map(os.path.abspath, jars))
return ":".join(jars)