Changeset 85465 in webkit


Ignore:
Timestamp:
May 2, 2011 1:11:02 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-05-02 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Add the ability to skip python and perl unit tests on EC2
https://bugs.webkit.org/show_bug.cgi?id=59918

  • Scripts/webkitpy/common/config/ports.py:
    • This is slightly ugly, but it's useful...
  • Scripts/webkitpy/common/config/ports_unittest.py:
  • Scripts/webkitpy/tool/mocktool.py:
  • Scripts/webkitpy/tool/steps/runtests.py:
Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85464 r85465  
     12011-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
    1142011-05-02  Adam Barth  <abarth@webkit.org>
    215
  • trunk/Tools/Scripts/webkitpy/common/config/ports.py

    r82771 r85465  
    256256
    257257
     258# FIXME: This port is a bit of a hack to get our infrastructure running on EC2.
    258259class ChromiumXVFBPort(ChromiumPort):
    259260
     261    results_directory = "/tmp/layout-test-results"
     262
    260263    @classmethod
    261264    def flag(cls):
     
    265268    def run_webkit_tests_command(cls):
    266269        # 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  
    7171
    7272    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'])
    7474
    7575if __name__ == '__main__':
  • trunk/Tools/Scripts/webkitpy/tool/mocktool.py

    r85462 r85465  
    758758        self.user = MockUser()
    759759        self._scm = MockSCM()
     760        self._port = MockPort()
    760761        self._checkout = MockCheckout()
    761762        self.status_server = MockStatusServer()
     
    781782
    782783    def port(self):
    783         return MockPort()
     784        return self._port
    784785
    785786
  • trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py

    r85464 r85465  
    4747            return
    4848
    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)
    5458
    5559        javascriptcore_tests_command = self._tool.port().run_javascriptcore_tests_command()
Note: See TracChangeset for help on using the changeset viewer.