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

Silently killing processes. #937

Merged
merged 1 commit into from
Jan 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions phing/tasks/tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
<target name="tests:selenium:kill"
description="Kills Selenium standalone server process and any process running on port 4444." hidden="true">
<echo>Killing any selenium processes that are already running.</echo>
<exec command="lsof -ti tcp:4444 | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
<exec command="pgrep selenium | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
<exec command="lsof -ti tcp:4444 | xargs kill 2>/dev/null" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
<exec command="pgrep selenium | xargs kill 2>/dev/null" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
</target>

<target name="tests:phantomjs:launch"
Expand Down Expand Up @@ -230,8 +230,8 @@
<target name="tests:phantomjs:kill"
description="Launches a GhostDriver." hidden="true">
<echo>Killing any PhantomJS processes that are already running.</echo>
<exec command="lsof -ti tcp:4444 | xargs kill" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
<exec command="pgrep phantomjs | xargs kill" logoutput="true" level="${blt.exec_level}" passthru="true" />
<exec command="lsof -ti tcp:4444 | xargs kill 2>/dev/null" logoutput="false" level="${blt.exec_level}" passthru="false" checkreturn="false" />
<exec command="pgrep phantomjs | xargs kill 2>/dev/null" logoutput="true" level="${blt.exec_level}" passthru="true" />
</target>

<!-- Execute PHPUnit tests. -->
Expand Down