summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 05:39:23 +0000
committermmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 05:39:23 +0000
commitb88ad53942280c0428906d596e6c21ac640e7a2b (patch)
tree4453c8210bf7c4a65c81b002037dd43b986fd84e
parentb24740e3b9555bc7b28b602a588a36665882602e (diff)
downloadchromium_src-b88ad53942280c0428906d596e6c21ac640e7a2b.zip
chromium_src-b88ad53942280c0428906d596e6c21ac640e7a2b.tar.gz
chromium_src-b88ad53942280c0428906d596e6c21ac640e7a2b.tar.bz2
Add KillAllTestShells() to match platform_utils_win.py.
Review URL: http://codereview.chromium.org/13684 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6778 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_linux.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
index 404a9a4..5c70111 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
@@ -102,6 +102,12 @@ class PlatformUtility(object):
return PlatformUtility._FilenameToUri(self, full_path, use_http=False,
use_ssl=False, port=0)
+ def KillAllTestShells(self):
+ """Kills all instances of the test_shell binary currently running."""
+ subprocess.Popen(('killall', '-TERM', self.TestShellBinary()),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE).wait()
+
def MissingLigHTTPd(self):
print 'Please install using: "sudo apt-get install lighttpd php5-cgi"'
print 'For complete Linux build requirements, please see:'