コード例 #1
0
 def test_mac_port(self):
     self.assertEquals(MacPort.name(), "Mac")
     self.assertEquals(MacPort.flag(), "--port=mac")
     self.assertEquals(MacPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(MacPort.build_webkit_command(), [WebKitPort.script_path("build-webkit")])
     self.assertEquals(MacPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug"])
     self.assertEquals(MacPort.build_webkit_command(build_style="release"), [WebKitPort.script_path("build-webkit"), "--release"])
コード例 #2
0
 def test_chromium_port(self):
     self.assertEquals(ChromiumPort.name(), "Chromium")
     self.assertEquals(ChromiumPort.flag(), "--port=chromium")
     self.assertEquals(ChromiumPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(ChromiumPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--chromium"])
     self.assertEquals(ChromiumPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug", "--chromium"])
     self.assertEquals(ChromiumPort.update_webkit_command(), [WebKitPort.script_path("update-webkit"), "--chromium"])
コード例 #3
0
 def test_chromium_port(self):
     self.assertEquals(ChromiumPort.name(), "Chromium")
     self.assertEquals(ChromiumPort.flag(), "--port=chromium")
     self.assertEquals(ChromiumPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(ChromiumPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--chromium"])
     self.assertEquals(ChromiumPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug", "--chromium"])
     self.assertEquals(ChromiumPort.update_webkit_command(), [WebKitPort.script_path("update-webkit"), "--chromium"])
コード例 #4
0
 def test_mac_port(self):
     self.assertEquals(MacPort.name(), "Mac")
     self.assertEquals(MacPort.flag(), "--port=mac")
     self.assertEquals(MacPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(MacPort.build_webkit_command(), [WebKitPort.script_path("build-webkit")])
     self.assertEquals(MacPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug"])
     self.assertEquals(MacPort.build_webkit_command(build_style="release"), [WebKitPort.script_path("build-webkit"), "--release"])
コード例 #5
0
 def test_qt_port(self):
     self.assertEquals(QtPort.name(), "Qt")
     self.assertEquals(QtPort.flag(), "--port=qt")
     self.assertEquals(QtPort.run_webkit_tests_command(),
                       [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(QtPort.build_webkit_command(), [
         WebKitPort.script_path("build-webkit"), "--qt",
         '--makeargs="-j%s"' % Executive.cpu_count()
     ])
     self.assertEquals(QtPort.build_webkit_command(build_style="debug"), [
         WebKitPort.script_path("build-webkit"), "--debug", "--qt",
         '--makeargs="-j%s"' % Executive.cpu_count()
     ])
コード例 #6
0
    def process_work_item(self, failure_info):
        svn_revision = failure_info["svn_revision"]
        builders = failure_info["builders"]

        self.tool.executive.run_and_throw_if_fail(
            WebKitPort.update_webkit_command(), quiet=True)
        commit_info = self.tool.checkout().commit_info_for_revision(
            svn_revision)
        responsible_parties = [
            commit_info.committer(),
            commit_info.author(),
            commit_info.reviewer()
        ]
        irc_nicknames = sorted(
            set([
                party.irc_nickname for party in responsible_parties
                if party and party.irc_nickname
            ]))
        irc_prefix = ": " if irc_nicknames else ""
        irc_message = "%s%sr%s appears to have broken %s" % (
            ", ".join(irc_nicknames), irc_prefix, svn_revision, ", ".join(
                [builder.name() for builder in builders]))

        self.tool.irc().post(irc_message)

        for builder in builders:
            self.tool.status_server.update_svn_revision(
                svn_revision, builder.name())
コード例 #7
0
ファイル: sheriffbot.py プロジェクト: jackiekaon/owb-mirror
    def process_work_item(self, failure_info):
        svn_revision = failure_info["svn_revision"]
        builders = failure_info["builders"]

        self.tool.executive.run_and_throw_if_fail(WebKitPort.update_webkit_command(), quiet=True)
        commit_info = self.tool.checkout().commit_info_for_revision(svn_revision)
        responsible_parties = [commit_info.committer(), commit_info.author(), commit_info.reviewer()]
        irc_nicknames = sorted(
            set([party.irc_nickname for party in responsible_parties if party and party.irc_nickname])
        )
        irc_prefix = ": " if irc_nicknames else ""
        irc_message = "%s%sr%s appears to have broken %s" % (
            ", ".join(irc_nicknames),
            irc_prefix,
            svn_revision,
            ", ".join([builder.name() for builder in builders]),
        )

        self.tool.irc().post(irc_message)

        for builder in builders:
            self.tool.status_server.update_svn_revision(svn_revision, builder.name())
コード例 #8
0
 def __init__(self):
     AbstractReviewQueue.__init__(self)
     self.port = WebKitPort.port(self.port_name)
コード例 #9
0
 def port(self):
     if self._port:
         return self._port
     self._port = WebKitPort.port(self._options.port)
     return self._port
コード例 #10
0
 def port(self):
     if self._port:
         return self._port
     self._port = WebKitPort.port(self._options.port)
     return self._port
コード例 #11
0
 def test_qt_port(self):
     self.assertEquals(QtPort.name(), "Qt")
     self.assertEquals(QtPort.flag(), "--port=qt")
     self.assertEquals(QtPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")])
     self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt", '--makeargs="-j%s"' % Executive.cpu_count()])
     self.assertEquals(QtPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug", "--qt", '--makeargs="-j%s"' % Executive.cpu_count()])