Home
last modified time | relevance | path

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

/external/toolchain-utils/crosperf/
Ddownload_images_unittest.py40 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
47 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
69 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 1)
76 mock_cmd_exec.RunCommand.assert_called_with(expected_args)
80 mock_cmd_exec.reset_mock()
96 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)
97 self.assertEqual(mock_cmd_exec.ChrootRunCommand.call_count, 0)
103 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
108 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
122 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 2)
[all …]
Dmachine_manager_unittest.py73 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in MachineManagerTest
92 self.mock_cmd_exec,
170 self.mock_cmd_exec.CrosRunCommand = mock_run_croscmd
171 self.mock_cmd_exec.RunCommand = mock_run_cmd
178 self.mock_cmd_exec.log_level = 'verbose'
254 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd
672 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in CrosMachineTest
678 'average', self.mock_cmd_exec)
699 'average', self.mock_cmd_exec)
728 'average', self.mock_cmd_exec)
[all …]
Dsuite_runner_unittest.py30 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in SuiteRunnerTest
76 {}, self.mock_logger, 'verbose', self.mock_cmd_exec, self.mock_cmd_term)
211 self.mock_cmd_exec.ChrootRunCommandWOutput = mock_chroot_runcmd
212 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
243 self.mock_cmd_exec.ChrootRunCommandWOutput = mock_chroot_runcmd
244 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
272 self.mock_cmd_exec.RunCommandWOutput = mock_runcmd
Dexperiment_runner_unittest.py108 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in ExperimentRunnerTest
131 cmd_exec=self.mock_cmd_exec)
141 cmd_exec=self.mock_cmd_exec)
183 cmd_exec=self.mock_cmd_exec)
211 cmd_exec=self.mock_cmd_exec)
239 cmd_exec=self.mock_cmd_exec)
269 cmd_exec=self.mock_cmd_exec)
295 cmd_exec=self.mock_cmd_exec)
430 cmd_exec=self.mock_cmd_exec)
Dresults_cache_unittest.py483 self.mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
502 self.mock_cmd_exec)
512 self.mock_cmd_exec.RunCommand = mock_runcmd
513 self.mock_cmd_exec.CopyFiles = mock_copyfiles
1846 self.mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
1862 self.mock_cmd_exec)
2058 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
2060 mock_cmd_exec)
Dschedv2_unittest.py75 mock_cmd_exec = mock.Mock(spec=CommandExecuter) variable in Schedv2Test
/external/toolchain-utils/cros_utils/
Ddevice_setup_utils_unittest.py100 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter) variable in DutWrapperTest
112 ce=self.mock_cmd_exec,
117 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd
126 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd
142 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd