Update DumpRenderTree2 to reflect removal of WEBKIT_MERGE_REVISION

We now use ThirdPartyProject.prop
See https://android-git.corp.google.com/g/#change,64831

Change-Id: Ib52fdd93ac08fb19ec8b7f539eb084c0b668e01b
This commit is contained in:
Steve Block
2010-09-07 21:59:31 +01:00
parent 8bb37f7ffb
commit 0e2bae14b4
2 changed files with 7 additions and 8 deletions

View File

@@ -76,8 +76,8 @@ def main():
directives += " -c \"Alias /LayoutTests " + layout_tests_path + "\""
directives += " -c \"Alias /WebKitTools/DumpRenderTree/android " + \
os.path.join(webkit_path, "WebKitTools", "DumpRenderTree", "android") + "\""
directives += " -c \"Alias /WEBKIT_MERGE_REVISION " + \
os.path.join(webkit_path, "WEBKIT_MERGE_REVISION") + "\""
directives += " -c \"Alias /ThirdPartyProject.prop " + \
os.path.join(webkit_path, "ThirdPartyProject.prop") + "\""
# This directive is commented out in apache2-debian-httpd.conf for some reason
# However, it is useful to browse through tests in the browser, so it's added here.

View File

@@ -326,15 +326,14 @@ public class Summarizer {
private String getWebKitRevision() {
URL url = null;
try {
url = new URL(ForwarderManager.getHostSchemePort(false) + "WEBKIT_MERGE_REVISION");
url = new URL(ForwarderManager.getHostSchemePort(false) + "ThirdPartyProject.prop");
} catch (MalformedURLException e) {
assert false;
}
String webkitMergeRevisionFileContents = new String(FsUtils.readDataFromUrl(url));
Matcher matcher =
Pattern.compile("http://svn.webkit.org/repository/webkit/trunk@([0-9]+)").matcher(
webkitMergeRevisionFileContents);
String thirdPartyProjectContents = new String(FsUtils.readDataFromUrl(url));
Matcher matcher = Pattern.compile("^version=([0-9]+)", Pattern.MULTILINE).matcher(
thirdPartyProjectContents);
if (matcher.find()) {
return matcher.group(1);
}
@@ -482,4 +481,4 @@ public class Summarizer {
}
return url;
}
}
}