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

Side by Side Diff: webkit/tools/layout_tests/layout_package/failure_finder.py

Issue 341086: Changes the fallback order of Chromium win directories in the layout test for... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # TODO(gwilson): 1. Change text differs to use external utils. 5 # TODO(gwilson): 1. Change text differs to use external utils.
6 # 2. Change text_expectations parsing to existing 6 # 2. Change text_expectations parsing to existing
7 # logic in layout_pagckage.test_expectations. 7 # logic in layout_pagckage.test_expectations.
8 8
9 import difflib 9 import difflib
10 import errno 10 import errno
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 # Failure types as found in builder stdio. 45 # Failure types as found in builder stdio.
46 TEXT_DIFF_MISMATCH = "Text diff mismatch" 46 TEXT_DIFF_MISMATCH = "Text diff mismatch"
47 IMAGE_MISMATCH = "Image mismatch" 47 IMAGE_MISMATCH = "Image mismatch"
48 TEST_TIMED_OUT = "Test timed out" 48 TEST_TIMED_OUT = "Test timed out"
49 TEST_SHELL_CRASHED = "Test shell crashed" 49 TEST_SHELL_CRASHED = "Test shell crashed"
50 50
51 CHROMIUM_WIN = "chromium-win" 51 CHROMIUM_WIN = "chromium-win"
52 CHROMIUM_WIN_XP = "chromium-win-xp" 52 CHROMIUM_WIN_XP = "chromium-win-xp"
53 CHROMIUM_WIN_VISTA = "chromium-win-vista" 53 CHROMIUM_WIN_VISTA = "chromium-win-vista"
54 CHROMIUM_WIN_7 = "chromium-win-7"
54 CHROMIUM_MAC = "chromium-mac" 55 CHROMIUM_MAC = "chromium-mac"
55 CHROMIUM_LINUX = "chromium-linux" 56 CHROMIUM_LINUX = "chromium-linux"
56 PLATFORM = "platform" 57 PLATFORM = "platform"
57 LAYOUTTESTS = "LayoutTests" 58 LAYOUTTESTS = "LayoutTests"
58 59
59 # These platform dirs must be in order of their precedence. 60 # These platform dirs must be in order of their precedence.
60 # TODO(gwilson): This is not the same fallback order as test_shell. This list 61 # TODO(gwilson): This is not the same fallback order as test_shell. This list
61 # should be reversed, and we need to add detection for the type of OS that 62 # should be reversed, and we need to add detection for the type of OS that
62 # the given builder is running. 63 # the given builder is running.
63 WEBKIT_MAC_PLATFORM_DIRS = ["mac-leopard", "mac-snowleopard", "mac"] 64 WEBKIT_MAC_PLATFORM_DIRS = ["mac-leopard", "mac-snowleopard", "mac"]
64 WEBKIT_WIN_PLATFORM_DIRS = ["win", "mac"] 65 WEBKIT_WIN_PLATFORM_DIRS = ["win", "mac"]
65 CHROMIUM_MAC_PLATFORM_DIRS = [CHROMIUM_MAC] 66 CHROMIUM_MAC_PLATFORM_DIRS = [CHROMIUM_MAC]
66 CHROMIUM_WIN_PLATFORM_DIRS = [CHROMIUM_WIN, CHROMIUM_WIN_XP, CHROMIUM_WIN_VISTA] 67 CHROMIUM_WIN_PLATFORM_DIRS = [CHROMIUM_WIN_XP, CHROMIUM_WIN_VISTA,
68 CHROMIUM_WIN_7, CHROMIUM_WIN]
67 CHROMIUM_LINUX_PLATFORM_DIRS = [CHROMIUM_LINUX, CHROMIUM_WIN] 69 CHROMIUM_LINUX_PLATFORM_DIRS = [CHROMIUM_LINUX, CHROMIUM_WIN]
68 70
69 ARCHIVE_URL_REGEX = "last.*change: (\d+)" 71 ARCHIVE_URL_REGEX = "last.*change: (\d+)"
70 BUILD_NAME_REGEX = "build name: ([^\s]*)" 72 BUILD_NAME_REGEX = "build name: ([^\s]*)"
71 CHROMIUM_FILE_AGE_REGEX = '<br />\s*Modified\s*<em>.*</em> \((.*)\) by' 73 CHROMIUM_FILE_AGE_REGEX = '<br />\s*Modified\s*<em>.*</em> \((.*)\) by'
72 TEST_PATH_REGEX = "[^\s]+?" 74 TEST_PATH_REGEX = "[^\s]+?"
73 FAILED_REGEX = ("ERROR (" + TEST_PATH_REGEX + ") failed:\s*" 75 FAILED_REGEX = ("ERROR (" + TEST_PATH_REGEX + ") failed:\s*"
74 "(" + TEXT_DIFF_MISMATCH + ")?\s*" 76 "(" + TEXT_DIFF_MISMATCH + ")?\s*"
75 "(" + IMAGE_MISMATCH + ")?\s*" 77 "(" + IMAGE_MISMATCH + ")?\s*"
76 "(" + TEST_TIMED_OUT + ")?\s*" 78 "(" + TEST_TIMED_OUT + ")?\s*"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 localFile.write(webFile.read()) 822 localFile.write(webFile.read())
821 webFile.close() 823 webFile.close()
822 localFile.close() 824 localFile.close()
823 os.chmod(local_filename, 0777) 825 os.chmod(local_filename, 0777)
824 except urllib2.HTTPError: 826 except urllib2.HTTPError:
825 return None 827 return None
826 except urllib2.URLError: 828 except urllib2.URLError:
827 print "The url %s is malformed." % url 829 print "The url %s is malformed." % url
828 return None 830 return None
829 return localFile.name 831 return localFile.name
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698