| OLD | NEW |
| 1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """A Thread object for running the test shell and processing URLs from a | 5 """A Thread object for running the test shell and processing URLs from a |
| 6 shared queue. | 6 shared queue. |
| 7 | 7 |
| 8 Each thread runs a separate instance of the test_shell binary and validates | 8 Each thread runs a separate instance of the test_shell binary and validates |
| 9 the output. When there are no more URLs to process in the shared queue, the | 9 the output. When there are no more URLs to process in the shared queue, the |
| 10 thread exits. | 10 thread exits. |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 if self._test_shell_proc.stderr: | 479 if self._test_shell_proc.stderr: |
| 480 self._test_shell_proc.stderr.close() | 480 self._test_shell_proc.stderr.close() |
| 481 if (sys.platform not in ('win32', 'cygwin') and | 481 if (sys.platform not in ('win32', 'cygwin') and |
| 482 not self._test_shell_proc.poll()): | 482 not self._test_shell_proc.poll()): |
| 483 # Closing stdin/stdout/stderr hangs sometimes on OS X. | 483 # Closing stdin/stdout/stderr hangs sometimes on OS X. |
| 484 null = open(os.devnull, "w") | 484 null = open(os.devnull, "w") |
| 485 subprocess.Popen(["kill", "-9", | 485 subprocess.Popen(["kill", "-9", |
| 486 str(self._test_shell_proc.pid)], stderr=null) | 486 str(self._test_shell_proc.pid)], stderr=null) |
| 487 null.close() | 487 null.close() |
| 488 self._test_shell_proc = None | 488 self._test_shell_proc = None |
| OLD | NEW |