Skip to content

Commit

Permalink
Fix #13 org.openqa.selenium.WebDriverException: chrome not reachable …
Browse files Browse the repository at this point in the history
…on CentOS 7.0/Ubuntu 14.04
  • Loading branch information
Dennis Hoer committed Jun 9, 2015
1 parent a670de2 commit 1b261b9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ provisioner:
require_chef_omnibus: 11.14

platforms:
- name: ubuntu-14.04
- name: centos-6.6
- name: centos-7.0
driver:
network:
- ["forwarded_port", {guest: 4444, host: 4444}]
- ["forwarded_port", {guest: 5555, host: 5555}]
- name: ubuntu-14.04
driver:
network:
- ["forwarded_port", {guest: 4444, host: 4445}]
- ["forwarded_port", {guest: 5555, host: 5556}]

suites:
- name: selenium_test
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.3.3 - 6/9/2015

- Fix #13 org.openqa.selenium.WebDriverException: chrome not reachable on CentOS 7.0/Ubuntu 14.04

## 2.3.2 - 6/4/2015

- Update Selenium and IE driver from 2.45.0 to 2.46.0
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'MIT'
description 'Installs/Configures Selenium'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.3.2'
version '2.3.3'

supports 'centos'
supports 'redhat'
Expand Down
12 changes: 8 additions & 4 deletions templates/default/debian_initd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

set -e

user=<%=@user%>
exec=<%=@exec%>
args="<%=@args%>"
pidfile="/var/run/<%=@name%>.pid"
Expand Down Expand Up @@ -38,9 +39,12 @@ fi

if [ "$1" = "start" -o "$1" = "restart" ]; then
if [ ! -f "$pidfile" ]; then
export DISPLAY=$display
nohup $exec $args >> $logfile 2>&1 &
PID=$!
echo $PID > $pidfile
touch $pidfile
chown $user $pidfile

touch $logfile
chown $user $logfile

/bin/su - $user -c "DISPLAY=\"$display\" nohup $exec $args >> $logfile 2>&1 & echo \$! > $pidfile"
fi
fi

0 comments on commit 1b261b9

Please sign in to comment.