HomeSort by relevance Sort by last modified time
    Searched refs:tool (Results 1 - 25 of 193) sorted by null

1 2 3 4 5 6 7 8

  /external/webkit/Tools/Scripts/webkitpy/tool/steps/
cleanworkingdirectory_unittest.py 32 from webkitpy.tool.mocktool import MockOptions, MockTool
33 from webkitpy.tool.steps.cleanworkingdirectory import CleanWorkingDirectory
38 tool = MockTool()
39 step = CleanWorkingDirectory(tool, MockOptions(clean=True, force_clean=False))
41 self.assertEqual(tool._scm.ensure_no_local_commits.call_count, 1)
42 self.assertEqual(tool._scm.ensure_clean_working_directory.call_count, 1)
45 tool = MockTool()
46 step = CleanWorkingDirectory(tool, MockOptions(clean=False))
48 self.assertEqual(tool._scm.ensure_no_local_commits.call_count, 0)
49 self.assertEqual(tool._scm.ensure_clean_working_directory.call_count, 0
    [all...]
__init__.py 30 from webkitpy.tool.steps.applypatch import ApplyPatch
31 from webkitpy.tool.steps.applypatchwithlocalcommit import ApplyPatchWithLocalCommit
32 from webkitpy.tool.steps.attachtobug import AttachToBug
33 from webkitpy.tool.steps.build import Build
34 from webkitpy.tool.steps.checkstyle import CheckStyle
35 from webkitpy.tool.steps.cleanworkingdirectory import CleanWorkingDirectory
36 from webkitpy.tool.steps.cleanworkingdirectorywithlocalcommits import CleanWorkingDirectoryWithLocalCommits
37 from webkitpy.tool.steps.closebug import CloseBug
38 from webkitpy.tool.steps.closebugforlanddiff import CloseBugForLandDiff
39 from webkitpy.tool.steps.closepatch import ClosePatc
    [all...]
steps_unittest.py 33 from webkitpy.tool.mocktool import MockOptions, MockTool
34 from webkitpy.tool.steps.update import Update
35 from webkitpy.tool.steps.runtests import RunTests
36 from webkitpy.tool.steps.promptforbugortitle import PromptForBugOrTitle
48 def _run_step(self, step, tool=None, options=None, state=None):
49 if not tool:
50 tool = MockTool()
55 step(tool, options).run(state)
58 tool = MockTool()
62 OutputCapture().assert_outputs(self, self._run_step, [Update, tool, options], expected_stderr=expected_stderr
    [all...]
cleanworkingdirectorywithlocalcommits.py 29 from webkitpy.tool.steps.cleanworkingdirectory import CleanWorkingDirectory
32 def __init__(self, tool, options):
34 CleanWorkingDirectory.__init__(self, tool, options, allow_local_commits=True)
cleanworkingdirectory.py 31 from webkitpy.tool.steps.abstractstep import AbstractStep
32 from webkitpy.tool.steps.options import Options
36 def __init__(self, tool, options, allow_local_commits=False):
37 AbstractStep.__init__(self, tool, options)
metastep.py 29 from webkitpy.tool.steps.abstractstep import AbstractStep
35 def __init__(self, tool, options):
36 AbstractStep.__init__(self, tool, options)
39 self._step_instances.append(step_class(tool, options))
closepatch.py 29 from webkitpy.tool.comments import bug_comment_from_commit_text
30 from webkitpy.tool.steps.abstractstep import AbstractStep
validatechangelogs_unittest.py 33 from webkitpy.tool.mocktool import MockOptions, MockTool
34 from webkitpy.tool.steps.validatechangelogs import ValidateChangeLogs
40 tool = MockTool()
41 tool._checkout.is_path_to_changelog = lambda path: True
42 step = ValidateChangeLogs(tool, MockOptions(git_commit=None, non_interactive=non_interactive))
  /external/webkit/Tools/Scripts/webkitpy/tool/bot/
botinfo_unittest.py 31 from webkitpy.tool.bot.botinfo import BotInfo
32 from webkitpy.tool.mocktool import MockTool, MockStatusServer
38 tool = MockTool()
39 tool.status_server = MockStatusServer("MockBotId")
40 self.assertEqual(BotInfo(tool).summary_text(), "Bot: MockBotId Port: MockPort Platform: MockPlatform 1.0")
irc_command.py 36 from webkitpy.tool.bot.queueengine import TerminateQueue
37 from webkitpy.tool.grammar import join_with_separators
41 def execute(self, nick, args, tool, sheriff):
46 def execute(self, nick, args, tool, sheriff):
48 urls.view_revision_url(tool.buildbot.last_green_revision()))
52 def execute(self, nick, args, tool, sheriff):
53 tool.irc().post("Restarting...")
75 def execute(self, nick, args, tool, sheriff):
79 tool.irc().post("%s: Usage: SVN_REVISION [SVN_REVISIONS] REASON" % nick)
84 tool.irc().post("Preparing rollout for %s..."
    [all...]
botinfo.py 30 # FIXME: We should consider hanging one of these off the tool object.
32 def __init__(self, tool):
33 self._tool = tool
36 # bot_id is also stored on the options dictionary on the tool.
flakytestreporter_unittest.py 37 from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter
38 from webkitpy.tool.mocktool import MockTool, MockStatusServer
59 tool = MockTool()
60 reporter = FlakyTestReporter(tool, 'dummy-queue')
62 tool.checkout().recent_commit_infos_for_files = lambda paths: set(commit_infos)
95 tool = MockTool()
96 reporter = FlakyTestReporter(tool, 'dummy-queue')
97 bug = tool.bugs.fetch_bug(78)
101 tool = MockTool()
102 tool.filesystem = MockFileSystem({"/mock/foo/bar-diffs.txt": "mock"}
    [all...]
  /external/webkit/Tools/Scripts/webkitpy/tool/commands/
sheriffbot_unittest.py 31 from webkitpy.tool.commands.queuestest import QueuesTest
32 from webkitpy.tool.commands.sheriffbot import SheriffBot
33 from webkitpy.tool.mocktool import *
41 tool = MockTool()
42 mock_work_item = MockFailureMap(tool.buildbot)
44 "begin_work_queue": self._default_begin_work_queue_stderr("sheriff-bot", tool.scm().checkout_root),
__init__.py 3 from webkitpy.tool.commands.bugsearch import BugSearch
4 from webkitpy.tool.commands.bugfortest import BugForTest
5 from webkitpy.tool.commands.download import *
6 from webkitpy.tool.commands.earlywarningsystem import *
7 from webkitpy.tool.commands.openbugs import OpenBugs
8 from webkitpy.tool.commands.prettydiff import PrettyDiff
9 from webkitpy.tool.commands.queries import *
10 from webkitpy.tool.commands.queues import *
11 from webkitpy.tool.commands.rebaseline import Rebaseline
12 from webkitpy.tool.commands.rebaselineserver import RebaselineServe
    [all...]
prettydiff.py 29 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
30 from webkitpy.tool import steps
abstractsequencedcommand.py 31 from webkitpy.tool.commands.stepsequence import StepSequence
32 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
41 def _prepare_state(self, options, args, tool):
44 def execute(self, options, args, tool):
46 state = self._prepare_state(options, args, tool)
51 self._sequence.run_and_handle_errors(tool, options, state)
bugsearch.py 29 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
36 def execute(self, options, args, tool):
38 bugs = tool.bugs.queries.fetch_bugs_matching_quicksearch(search_string)
roll.py 29 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
31 from webkitpy.tool import steps
45 def _prepare_state(self, options, args, tool):
stepsequence.py 29 from webkitpy.tool import steps
34 from webkitpy.tool.bot.queueengine import QueueEngine
39 def handle_script_error(cls, tool, patch, script_error):
43 def handle_checkout_needs_update(cls, tool, state, options, error):
62 def _run(self, tool, options, state):
64 step(tool, options).run(state)
66 def run_and_handle_errors(self, tool, options, state=None):
70 self._run(tool, options, state)
74 command = tool.command_by_name(options.parent_command)
75 command.handle_checkout_needs_update(tool, state, options, e
    [all...]
bugfortest.py 29 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
30 from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter
40 def execute(self, options, args, tool):
41 reporter = FlakyTestReporter(tool, "webkitpy")
roll_unittest.py 30 from webkitpy.tool.commands.commandtest import CommandsTest
31 from webkitpy.tool.commands.roll import *
32 from webkitpy.tool.mocktool import MockOptions, MockTool
commandtest.py 32 from webkitpy.tool.mocktool import MockOptions, MockTool
35 def assert_execute_outputs(self, command, args, expected_stdout="", expected_stderr="", expected_exception=None, options=MockOptions(), tool=MockTool()):
47 command.bind_to_tool(tool)
48 OutputCapture().assert_outputs(self, command.execute, [options, args, tool], expected_stdout=expected_stdout, expected_stderr=expected_stderr, expected_exception=expected_exception)
upload.py 37 from webkitpy.tool import steps
44 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
45 from webkitpy.tool.comments import bug_comment_from_svn_revision
46 from webkitpy.tool.grammar import pluralize, join_with_separators
47 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
60 def execute(self, options, args, tool):
63 print "%s" % tool.checkout().commit_message_for_this_commit(options.git_commit).message()
82 def execute(self, options, args, tool):
84 for bug_id in tool.bugs.queries.fetch_bug_ids_from_pending_commit_list():
100 def execute(self, options, args, tool)
    [all...]
upload_unittest.py 30 from webkitpy.tool.commands.commandtest import CommandsTest
31 from webkitpy.tool.commands.upload import *
32 from webkitpy.tool.mocktool import MockOptions, MockTool
36 tool = MockTool()
38 self.assert_execute_outputs(CommitMessageForCurrentDiff(), [], expected_stdout=expected_stdout, tool=tool)
44 tool = MockTool()
46 self.assert_execute_outputs(AssignToCommitter(), [], expected_stderr=expected_stderr, tool=tool)
47 tool.bugs.reassign_bug.assert_called_with(42, "eric@webkit.org", "Attachment 128 was posted by a commit (…)
    [all...]
  /external/webkit/Tools/Scripts/webkitpy/tool/
multicommandtool_unittest.py 35 from webkitpy.tool.multicommandtool import MultiCommandTool, Command, TryAgain
44 def execute(self, options, args, tool):
61 def execute(self, options, args, tool):
84 expected_missing_args_error = "2 arguments required, 1 argument provided. Provided: 'foo' Required: ARG1 ARG2\nSee 'trivial-tool help trivial' for usage.\n"
91 MultiCommandTool.__init__(self, name="trivial-tool", commands=commands)
120 tool = TrivialTool()
121 self.assertEqual(tool.command_by_name("trivial").name, "trivial")
122 self.assertEqual(tool.command_by_name("bar"), None)
124 def _assert_tool_main_outputs(self, tool, main_args, expected_stdout, expected_stderr = "", expected_exit_code=0):
125 exit_code = OutputCapture().assert_outputs(self, tool.main, [main_args], expected_stdout=expected_stdout, expected_stderr=expected_stderr
    [all...]

Completed in 84 milliseconds

1 2 3 4 5 6 7 8