Lines Matching refs:tool
35 from webkitpy.tool.multicommandtool import MultiCommandTool, Command, TryAgain
44 def execute(self, options, args, tool): argument
61 def execute(self, options, args, tool): argument
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 = "", expect… argument
125 …exit_code = OutputCapture().assert_outputs(self, tool.main, [main_args], expected_stdout=expected_…
130 tool = TrivialTool(commands=[likes_to_retry])
131 tool.main(["tool", "likes-to-retry"])
135 tool = TrivialTool(commands=[TrivialCommand(), UncommonCommand()])
148 self._assert_tool_main_outputs(tool, ["tool"], expected_common_commands_help)
149 self._assert_tool_main_outputs(tool, ["tool", "help"], expected_common_commands_help)
164 …self._assert_tool_main_outputs(tool, ["tool", "help", "--all-commands"], expected_all_commands_hel…
166 …self._assert_tool_main_outputs(tool, ["tool", "--all-commands", "help"], expected_all_commands_hel…
171 tool = TrivialTool(commands=[command_with_options])
173 self._assert_tool_main_outputs(tool, ["tool", "help", "trivial"], expected_subcommand_help)