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

Side by Side Diff: webkit/tools/layout_tests/webkitpy/layout_package/test_shell_thread.py

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698