diff options
| author | Alex Dunn | 2015-04-19 11:53:55 -0700 |
|---|---|---|
| committer | Brett Koonce | 2015-04-19 20:24:44 -0700 |
| commit | 6ce7fab98b482e3864d8583fb24d10246ae9eda5 (patch) | |
| tree | 78e0dea12d9c1d3eceb703964315588aef28181e /Library | |
| parent | 972644517bc29731cd72fd26958fd8a6a2676e56 (diff) | |
| download | homebrew-6ce7fab98b482e3864d8583fb24d10246ae9eda5.tar.bz2 | |
chromedriver 2.15, add test
Closes #38831.
Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/chromedriver.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Library/Formula/chromedriver.rb b/Library/Formula/chromedriver.rb index 2070464dc..514486620 100644 --- a/Library/Formula/chromedriver.rb +++ b/Library/Formula/chromedriver.rb @@ -1,13 +1,11 @@ -require 'formula' - class Chromedriver < Formula - homepage 'https://sites.google.com/a/chromium.org/chromedriver/' - url 'http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip' - sha256 '33ee96ea17b00dd8e14e15ca6fe1b1fd4ae7a71f86d8785e562e88d839299d2e' - version '2.14' + homepage "https://sites.google.com/a/chromium.org/chromedriver/" + url "http://chromedriver.storage.googleapis.com/2.15/chromedriver_mac32.zip" + sha256 "37f7ed1cb1bbafd2139486f44c81ebe0b1561c594d2ad2004bd66c3b07453427" + version "2.15" def install - bin.install 'chromedriver' + bin.install "chromedriver" end def plist; <<-EOS.undent @@ -35,4 +33,14 @@ class Chromedriver < Formula </plist> EOS end + + test do + driver = fork do + system bin/"chromedriver", + "--port=9999", "--log-path=#{testpath}/cd.log" + end + sleep 5 + Process.kill("TERM", driver) + File.exist? testpath/"cd.log" + end end |
