pushpin: fix test for sandbox

This commit is contained in:
Xu Cheng 2015-08-28 17:05:09 +08:00
parent 17aaca50fb
commit 45739be571

View file

@ -85,6 +85,10 @@ class Pushpin < Formula
cp prefix/"etc/pushpin/internal.conf", testpath/"internal.conf"
cp prefix/"etc/pushpin/routes", routesfile
inreplace conffile do |s|
s.gsub! "rundir=#{HOMEBREW_PREFIX}/var/run/pushpin", "rundir=#{testpath}/var/run/pushpin"
s.gsub! "logdir=#{HOMEBREW_PREFIX}/var/log/pushpin", "logdir=#{testpath}/var/log/pushpin"
end
inreplace routesfile, "localhost:80", "localhost:10080"
runfile.write <<-EOS.undent