Пример #1
0
def commit_error_handler(error):
    if re.search("resource out of date", error.output):
        raise CheckoutNeedsUpdate(script_args=error.script_args,
                                  exit_code=error.exit_code,
                                  output=error.output,
                                  cwd=error.cwd)
    Executive.default_error_handler(error)
 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()
     ])
Пример #3
0
    def __init__(self, path):
        MultiCommandTool.__init__(self)

        self._path = path
        self.bugs = Bugzilla()
        self.buildbot = BuildBot()
        self.executive = Executive()
        self._irc = None
        self.user = User()
        self._scm = None
        self._checkout = None
        self.status_server = StatusServer()
Пример #4
0
 def build_webkit_command(cls, build_style=None):
     command = WebKitPort.build_webkit_command(build_style=build_style)
     command.append("--gtk")
     command.append('--makeargs="-j%s"' % Executive.cpu_count())
     return command
Пример #5
0
 def build_webkit_command(cls, build_style=None):
     command = WebKitPort.build_webkit_command(build_style=build_style)
     command.append("--qt")
     command.append('--makeargs="-j%s"' % Executive.cpu_count())
     return command
Пример #6
0
 def __init__(self, host, git_prefix=None, executive=None, cwd=os.getcwd()):
     self.host = host
     self.git_prefix = git_prefix
     self.executive = executive or Executive()
     self.cwd = cwd
Пример #7
0
def commit_error_handler(error):
    if re.search("resource out of date", error.output):
        raise CheckoutNeedsUpdate(script_args=error.script_args, exit_code=error.exit_code, output=error.output, cwd=error.cwd)
    Executive.default_error_handler(error)
Пример #8
0
 def makeArgs():
     args = '--makeargs="-j%s"' % Executive.cpu_count()
     if os.environ.has_key('MAKEFLAGS'):
         args = '--makeargs="%s"' % os.environ['MAKEFLAGS']
     return args
 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()])