diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 21:45:59 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 21:45:59 +0000 |
commit | f4abbdf7a9dedc781ca78ec933125b48949fb6ff (patch) | |
tree | 48a26dbd14d06d9707d6cecd87b51fb18e7ea075 /webkit/tools | |
parent | 2ea67f9ed300515c7a65a52d2643440f888034e4 (diff) | |
download | chromium_src-f4abbdf7a9dedc781ca78ec933125b48949fb6ff.zip chromium_src-f4abbdf7a9dedc781ca78ec933125b48949fb6ff.tar.gz chromium_src-f4abbdf7a9dedc781ca78ec933125b48949fb6ff.tar.bz2 |
Write layout test output to chunk dir to enable a purify dashboard to be possible. (it can now see which tests were run each chunk)
BUG=18475
Review URL: http://codereview.chromium.org/173595
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rwxr-xr-x | webkit/tools/layout_tests/run_webkit_tests.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/webkit/tools/layout_tests/run_webkit_tests.py b/webkit/tools/layout_tests/run_webkit_tests.py index 00191fa..ff1d024 100755 --- a/webkit/tools/layout_tests/run_webkit_tests.py +++ b/webkit/tools/layout_tests/run_webkit_tests.py @@ -262,18 +262,27 @@ class TestRunner: slice_end = min(num_tests, slice_start + chunk_len) files = test_files[slice_start:slice_end] - logging.info('Run: %d tests (chunk slice [%d:%d] of %d)' % ( - (slice_end - slice_start), slice_start, slice_end, num_tests)) + tests_run_msg = 'Run: %d tests (chunk slice [%d:%d] of %d)' % ( + (slice_end - slice_start), slice_start, slice_end, num_tests) + logging.info(tests_run_msg) # If we reached the end and we don't have enough tests, we run some # from the beginning. if self._options.run_chunk and (slice_end - slice_start < chunk_len): extra = 1 + chunk_len - (slice_end - slice_start) - logging.info(' last chunk is partial, appending [0:%d]' % extra) + extra_msg = ' last chunk is partial, appending [0:%d]' % extra + logging.info(extra_msg) + tests_run_msg += "\n" + extra_msg files.extend(test_files[0:extra]) self._test_files_list = files self._test_files = set(files) + tests_run_filename = os.path.join(self._options.results_directory, + "tests_run.txt") + tests_run_file = open(tests_run_filename, "w") + tests_run_file.write(tests_run_msg) + tests_run_file.close() + # update expectations so that the stats are calculated correctly self._expectations = self._ParseExpectations( path_utils.PlatformName(), options.target == 'Debug') |