kafka: fix test (#14180)

`logs` can have spaces in it, so just use `testpath` instead.
This commit is contained in:
ilovezfs 2017-06-04 07:16:04 -07:00 committed by GitHub
parent 76073f22d6
commit 0828f4ffd6

View file

@ -89,13 +89,13 @@ class Kafka < Formula
begin
fork do
exec "#{bin}/zookeeper-server-start #{testpath}/kafka/zookeeper.properties > #{logs}/test.zookeeper-server-start.log 2>&1"
exec "#{bin}/zookeeper-server-start #{testpath}/kafka/zookeeper.properties > #{testpath}/test.zookeeper-server-start.log 2>&1"
end
sleep 15
fork do
exec "#{bin}/kafka-server-start #{testpath}/kafka/server.properties > #{logs}/test.kafka-server-start.log 2>&1"
exec "#{bin}/kafka-server-start #{testpath}/kafka/server.properties > #{testpath}/test.kafka-server-start.log 2>&1"
end
sleep 30