Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py

Issue 2649433002: When killing wptserve, use Executive.interrupt on non-Windows platforms. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 def cpu_count(self): 146 def cpu_count(self):
147 return 2 147 return 2
148 148
149 def kill_all(self, process_name): 149 def kill_all(self, process_name):
150 pass 150 pass
151 151
152 def kill_process(self, pid): 152 def kill_process(self, pid):
153 pass 153 pass
154 154
155 def interrupt(self, pid):
156 pass
157
155 def popen(self, args, cwd=None, env=None, **_): 158 def popen(self, args, cwd=None, env=None, **_):
156 assert all(isinstance(arg, basestring) for arg in args) 159 assert all(isinstance(arg, basestring) for arg in args)
157 self.calls.append(args) 160 self.calls.append(args)
158 if self._should_log: 161 if self._should_log:
159 cwd_string = "" 162 cwd_string = ""
160 if cwd: 163 if cwd:
161 cwd_string = ", cwd=%s" % cwd 164 cwd_string = ", cwd=%s" % cwd
162 env_string = "" 165 env_string = ""
163 if env: 166 if env:
164 env_string = ", env=%s" % env 167 env_string = ", env=%s" % env
(...skipping 19 matching lines...) Expand all
184 new_calls = self.calls[num_previous_calls:] 187 new_calls = self.calls[num_previous_calls:]
185 self.calls = self.calls[:num_previous_calls] 188 self.calls = self.calls[:num_previous_calls]
186 self.calls.append(new_calls) 189 self.calls.append(new_calls)
187 return command_outputs 190 return command_outputs
188 191
189 def map(self, thunk, arglist, processes=None): 192 def map(self, thunk, arglist, processes=None):
190 return map(thunk, arglist) 193 return map(thunk, arglist)
191 194
192 def process_dump(self): 195 def process_dump(self):
193 return [] 196 return []
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698