Home
last modified time | relevance | path

Searched refs:mock_cros_runcmd (Results 1 – 2 of 2) sorted by relevance

/external/toolchain-utils/crosperf/
Dsuite_runner_unittest.py164 def test_pin_governor_execution_frequencies(self, mock_cros_runcmd): argument
165 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
167 self.assertEqual(mock_cros_runcmd.call_count, 1)
168 cmd = mock_cros_runcmd.call_args_list[0][0]
189 def test_reboot_machine(self, mock_cros_runcmd, mock_sleep): argument
195 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
198 self.assertEqual(mock_cros_runcmd.call_count, 1)
199 self.assertEqual(mock_cros_runcmd.call_args_list[0][0],
205 def test_test_that_run(self, mock_chroot_runcmd, mock_cros_runcmd): argument
230 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd
[all …]
Dmachine_manager_unittest.py249 def test_try_to_lock_machine(self, mock_cros_runcmd): argument
252 mock_cros_runcmd.return_value = [0, 'false_lock_checksum', '']
253 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd
259 self.assertEqual(mock_cros_runcmd.call_count, 1)
260 cmd_str = mock_cros_runcmd.call_args[0][0]
262 args_dict = mock_cros_runcmd.call_args[1]