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

Side by Side Diff: Tools/Scripts/webkitpy/tool/servers/gardeningserver.py

Issue 13712005: Move GardeningServer out of BuildSlaveSupport (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Tools/GardeningServer/summary-mock.html ('k') | 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) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # 1. Redistributions of source code must retain the above copyright 7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # 2. Redistributions in binary form must reproduce the above copyright 9 # 2. Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the 10 # notice, this list of conditions and the following disclaimer in the
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 STATIC_FILE_NAMES = frozenset() 55 STATIC_FILE_NAMES = frozenset()
56 56
57 STATIC_FILE_EXTENSIONS = ('.js', '.css', '.html', '.gif', '.png', '.ico') 57 STATIC_FILE_EXTENSIONS = ('.js', '.css', '.html', '.gif', '.png', '.ico')
58 58
59 STATIC_FILE_DIRECTORY = os.path.join( 59 STATIC_FILE_DIRECTORY = os.path.join(
60 os.path.dirname(__file__), 60 os.path.dirname(__file__),
61 '..', 61 '..',
62 '..', 62 '..',
63 '..', 63 '..',
64 '..', 64 '..',
65 'BuildSlaveSupport', 65 'GardeningServer')
66 'build.webkit.org-config',
67 'public_html',
68 'TestFailures')
69 66
70 allow_cross_origin_requests = True 67 allow_cross_origin_requests = True
71 debug_output = '' 68 debug_output = ''
72 69
73 def ping(self): 70 def ping(self):
74 self._serve_text('pong') 71 self._serve_text('pong')
75 72
76 def _run_webkit_patch(self, command, input_string): 73 def _run_webkit_patch(self, command, input_string):
77 PIPE = self.server.tool.executive.PIPE 74 PIPE = self.server.tool.executive.PIPE
78 process = self.server.tool.executive.popen([self.server.tool.path()] + c ommand, cwd=self.server.tool.scm().checkout_root, stdin=PIPE, stdout=PIPE, stder r=PIPE) 75 process = self.server.tool.executive.popen([self.server.tool.path()] + c ommand, cwd=self.server.tool.scm().checkout_root, stdin=PIPE, stdout=PIPE, stder r=PIPE)
(...skipping 29 matching lines...) Expand all
108 filesystem = self.server.tool.filesystem 105 filesystem = self.server.tool.filesystem
109 106
110 # Ensure that we're only serving files from inside the results directory . 107 # Ensure that we're only serving files from inside the results directory .
111 if not filesystem.isabs(path) and self.server.options.results_directory: 108 if not filesystem.isabs(path) and self.server.options.results_directory:
112 fullpath = filesystem.abspath(filesystem.join(self.server.options.re sults_directory, path)) 109 fullpath = filesystem.abspath(filesystem.join(self.server.options.re sults_directory, path))
113 if fullpath.startswith(filesystem.abspath(self.server.options.result s_directory)): 110 if fullpath.startswith(filesystem.abspath(self.server.options.result s_directory)):
114 self._serve_file(fullpath, headers_only=(self.command == 'HEAD') ) 111 self._serve_file(fullpath, headers_only=(self.command == 'HEAD') )
115 return 112 return
116 113
117 self.send_response(403) 114 self.send_response(403)
OLDNEW
« no previous file with comments | « Tools/GardeningServer/summary-mock.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698