Home
last modified time | relevance | path

Searched refs:mock_cmd_exec (Results 1 – 6 of 6) sorted by relevance

/external/toolchain-utils/crosperf/
Ddownload_images_unittest.py36 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
43 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
65 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 1)
72 mock_cmd_exec.RunCommand.assert_called_with(expected_args)
76 mock_cmd_exec.reset_mock()
92 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)
93 self.assertEqual(mock_cmd_exec.ChrootRunCommand.call_count, 0)
99 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
104 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
118 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 2)
[all …]
Dmachine_manager_unittest.py70 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in MachineManagerTest
88 '/usr/local/chromeos', 0, 'average', None, self.mock_cmd_exec,
166 self.mock_cmd_exec.CrosRunCommand = mock_run_croscmd
167 self.mock_cmd_exec.RunCommand = mock_run_cmd
174 self.mock_cmd_exec.log_level = 'verbose'
253 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd
671 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in CrosMachineTest
677 'average', self.mock_cmd_exec)
698 'average', self.mock_cmd_exec)
727 'average', self.mock_cmd_exec)
[all …]
Dsuite_runner_unittest.py28 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in SuiteRunnerTest
75 self.mock_logger, 'verbose', self.mock_cmd_exec, self.mock_cmd_term)
165 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
195 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
229 self.mock_cmd_exec.ChrootRunCommandWOutput = mock_chroot_runcmd
230 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
255 self.mock_cmd_exec.ChrootRunCommandWOutput = mock_chroot_runcmd
292 self.mock_cmd_exec.RunCommandWOutput = mock_runcmd
Dexperiment_runner_unittest.py104 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in ExperimentRunnerTest
127 cmd_exec=self.mock_cmd_exec)
137 cmd_exec=self.mock_cmd_exec)
173 cmd_exec=self.mock_cmd_exec)
201 cmd_exec=self.mock_cmd_exec)
229 cmd_exec=self.mock_cmd_exec)
259 cmd_exec=self.mock_cmd_exec)
285 cmd_exec=self.mock_cmd_exec)
416 cmd_exec=self.mock_cmd_exec)
Dresults_cache_unittest.py194 self.mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
212 self.mock_cmd_exec)
221 self.mock_cmd_exec.RunCommand = mock_runcmd
222 self.mock_cmd_exec.CopyFiles = mock_copyfiles
900 self.mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
914 self.mock_cmd_exec)
1104 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
1106 mock_cmd_exec)
Dschedv2_unittest.py68 mock_cmd_exec = mock.Mock(spec=CommandExecuter) variable in Schedv2Test