OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """A tool to kill any leftover test processes, executed by buildbot. | 6 """A tool to kill any leftover test processes, executed by buildbot. |
7 | 7 |
8 Only works on Windows.""" | 8 Only works on Windows.""" |
9 | 9 |
10 import os | 10 import os |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 'base_unittests.exe', | 89 'base_unittests.exe', |
90 'ceee_broker.exe', | 90 'ceee_broker.exe', |
91 'ceee_common_unittests.exe', | 91 'ceee_common_unittests.exe', |
92 'chrome.exe', | 92 'chrome.exe', |
93 'chrome_frame_helper.exe', | 93 'chrome_frame_helper.exe', |
94 'chrome_frame_net_tests.exe', | 94 'chrome_frame_net_tests.exe', |
95 'chrome_frame_tests.exe', | 95 'chrome_frame_tests.exe', |
96 'chrome_launcher.exe', | 96 'chrome_launcher.exe', |
97 'chrome_frame_unittests.exe', | 97 'chrome_frame_unittests.exe', |
98 'crash_service.exe', | 98 'crash_service.exe', |
| 99 'crypto_unittests.exe', |
99 'debug_message.exe', | 100 'debug_message.exe', |
100 'DumpRenderTree.exe', | 101 'DumpRenderTree.exe', |
101 'flush_cache.exe', | 102 'flush_cache.exe', |
102 'gpu_tests.exe', | 103 'gpu_tests.exe', |
103 'ie_unittests.exe', | 104 'ie_unittests.exe', |
104 'image_diff.exe', | 105 'image_diff.exe', |
105 'installer_util_unittests.exe', | 106 'installer_util_unittests.exe', |
106 'interactive_ui_tests.exe', | 107 'interactive_ui_tests.exe', |
107 'ipc_tests.exe', | 108 'ipc_tests.exe', |
108 'mediumtest_ie.exe', | 109 'mediumtest_ie.exe', |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 # reappearing. | 145 # reappearing. |
145 KillAll(lingering_processes, must_die=False) | 146 KillAll(lingering_processes, must_die=False) |
146 | 147 |
147 # Kill all regular processes. We must guarantee that these are killed since | 148 # Kill all regular processes. We must guarantee that these are killed since |
148 # we exit with an error code if they're not. | 149 # we exit with an error code if they're not. |
149 if KillAll(processes, must_die=True): | 150 if KillAll(processes, must_die=True): |
150 sys.exit(0) | 151 sys.exit(0) |
151 | 152 |
152 # Some processes were not killed, exit with non-zero status. | 153 # Some processes were not killed, exit with non-zero status. |
153 sys.exit(1) | 154 sys.exit(1) |
OLD | NEW |