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

Unified Diff: webkit/tools/layout_tests/layout_package/test_shell_thread.py

Issue 206005: print out the tests that were run into tests_run.txt for easier postprocessing (Closed)
Patch Set: added a comment and explicitly closed the file Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/layout_tests/run_webkit_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/layout_package/test_shell_thread.py
diff --git a/webkit/tools/layout_tests/layout_package/test_shell_thread.py b/webkit/tools/layout_tests/layout_package/test_shell_thread.py
index 13e5d1aedfd3819ad7c0eed7f0708a719f8b9ea7..c6eccdb573cede397593ce493db844bb204c11f0 100644
--- a/webkit/tools/layout_tests/layout_package/test_shell_thread.py
+++ b/webkit/tools/layout_tests/layout_package/test_shell_thread.py
@@ -245,9 +245,17 @@ class TestShellThread(threading.Thread):
except:
logging.info("Ignoring invalid batch size '%s'" %
self._options.batch_size)
+
+ # Append tests we're running to the existing tests_run.txt file.
+ # This is created in run_webkit_tests.py:_PrepareListsAndPrintOutput.
+ tests_run_filename = os.path.join(self._options.results_directory,
+ "tests_run.txt")
+ tests_run_file = open(tests_run_filename, "a")
+
while True:
if self._canceled:
logging.info('Testing canceled')
+ tests_run_file.close()
return
if len(self._filename_list) is 0:
@@ -262,6 +270,7 @@ class TestShellThread(threading.Thread):
except Queue.Empty:
self._KillTestShell()
logging.debug("queue empty, quitting test shell thread")
+ tests_run_file.close()
return
self._num_tests_in_current_dir = len(self._filename_list)
@@ -277,6 +286,7 @@ class TestShellThread(threading.Thread):
failures = self._RunTest(test_info)
filename = test_info.filename
+ tests_run_file.write(filename + "\n")
if failures:
# Check and kill test shell if we need too.
if len([1 for f in failures if f.ShouldKillTestShell()]):
« no previous file with comments | « no previous file | webkit/tools/layout_tests/run_webkit_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698