Changeset 85465 in webkit
- Timestamp:
- May 2, 2011 1:11:02 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85464 r85465 1 2011-05-02 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Add the ability to skip python and perl unit tests on EC2 6 https://bugs.webkit.org/show_bug.cgi?id=59918 7 8 * Scripts/webkitpy/common/config/ports.py: 9 - This is slightly ugly, but it's useful... 10 * Scripts/webkitpy/common/config/ports_unittest.py: 11 * Scripts/webkitpy/tool/mocktool.py: 12 * Scripts/webkitpy/tool/steps/runtests.py: 13 1 14 2011-05-02 Adam Barth <abarth@webkit.org> 2 15 -
trunk/Tools/Scripts/webkitpy/common/config/ports.py
r82771 r85465 256 256 257 257 258 # FIXME: This port is a bit of a hack to get our infrastructure running on EC2. 258 259 class ChromiumXVFBPort(ChromiumPort): 259 260 261 results_directory = "/tmp/layout-test-results" 262 260 263 @classmethod 261 264 def flag(cls): … … 265 268 def run_webkit_tests_command(cls): 266 269 # FIXME: We should find a better way to do this. 267 return ["xvfb-run"] + ChromiumPort.run_webkit_tests_command() 270 return ["xvfb-run"] + ChromiumPort.run_webkit_tests_command() + [ 271 "--results-directory=%s" % cls.results_directory, 272 "--verbose", 273 ] 274 275 @classmethod 276 def run_python_unittests_command(cls): 277 return None 278 279 @classmethod 280 def run_perl_unittests_command(cls): 281 return None 282 283 @classmethod 284 def layout_tests_results_path(cls): 285 return os.path.join(cls.results_directory, "unexpected_results.json") -
trunk/Tools/Scripts/webkitpy/common/config/ports_unittest.py
r74301 r85465 71 71 72 72 def test_chromium_xvfb_port(self): 73 self.assertEquals(ChromiumXVFBPort.run_webkit_tests_command(), [ "xvfb-run", "Tools/Scripts/new-run-webkit-tests", "--chromium", "--no-pixel-tests"])73 self.assertEquals(ChromiumXVFBPort.run_webkit_tests_command(), ['xvfb-run', 'Tools/Scripts/new-run-webkit-tests', '--chromium', '--no-pixel-tests', '--results-directory=/tmp/layout-test-results', '--verbose']) 74 74 75 75 if __name__ == '__main__': -
trunk/Tools/Scripts/webkitpy/tool/mocktool.py
r85462 r85465 758 758 self.user = MockUser() 759 759 self._scm = MockSCM() 760 self._port = MockPort() 760 761 self._checkout = MockCheckout() 761 762 self.status_server = MockStatusServer() … … 781 782 782 783 def port(self): 783 return MockPort()784 return self._port 784 785 785 786 -
trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py
r85464 r85465 47 47 return 48 48 49 # Run the scripting unit tests first because they're quickest. 50 log("Running Python unit tests") 51 self._tool.executive.run_and_throw_if_fail(self._tool.port().run_python_unittests_command()) 52 log("Running Perl unit tests") 53 self._tool.executive.run_and_throw_if_fail(self._tool.port().run_perl_unittests_command()) 49 python_unittests_command = self._tool.port().run_python_unittests_command() 50 if python_unittests_command: 51 log("Running Python unit tests") 52 self._tool.executive.run_and_throw_if_fail(python_unittests_command) 53 54 perl_unittests_command = self._tool.port().run_perl_unittests_command() 55 if perl_unittests_command: 56 log("Running Perl unit tests") 57 self._tool.executive.run_and_throw_if_fail(perl_unittests_command) 54 58 55 59 javascriptcore_tests_command = self._tool.port().run_javascriptcore_tests_command()
Note: See TracChangeset
for help on using the changeset viewer.