Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 25cfe7a

Browse files
authored
Fixing Drupal VM integration with Selenium. (#544)
* Fixing Drupal VM integration with Selenium. * Removing install-chrome.sh.
1 parent 32cfac9 commit 25cfe7a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

phing/tasks/tests.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999

100100
<target name="tests:selenium:kill"
101101
description="Kills Selenium standalone server process and any process running on port 4444." hidden="true">
102-
<exec command="lsof -ti tcp:4444 | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="true" checkreturn="false" />
103-
<exec command="pgrep selenium | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="true" checkreturn="false" />
102+
<exec command="lsof -ti tcp:4444 | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
103+
<exec command="pgrep selenium | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
104104
</target>
105105

106106
<!-- Execute PHPUnit tests. -->

scripts/drupal-vm/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"
4646
installed_extras:
4747
- adminer
4848
- nodejs
49-
- java
49+
- selenium
5050

5151
# Use PHP 5.6 and change package names to work with 5.6.
5252
php_version: "5.6"

scripts/linux/install-chrome.sh

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
1010
# Download google chrome.
1111
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
1212
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb
13+
apt-get -f install
1314

1415
# Installs chromedriver for Linux 64 bit systems.
1516
wget -N http://chromedriver.storage.googleapis.com/2.24/chromedriver_linux64.zip

0 commit comments

Comments
 (0)