Searched refs:mock_cros_runcmd (Results 1 – 3 of 3) sorted by relevance
/external/toolchain-utils/cros_utils/ |
D | device_setup_utils_unittest.py | 116 def test_run_command_on_dut(self, mock_cros_runcmd): argument 117 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd 118 mock_cros_runcmd.return_value = (0, '', '') 119 mock_cros_runcmd.assert_not_called() 121 mock_cros_runcmd.assert_called_once_with( 125 def test_dut_wrapper_fatal_error(self, mock_cros_runcmd): argument 126 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd 128 mock_cros_runcmd.return_value = (1, '', 'Error!') 129 mock_cros_runcmd.assert_not_called() 131 mock_cros_runcmd.assert_called_once_with( [all …]
|
/external/toolchain-utils/crosperf/ |
D | suite_runner_unittest.py | 209 def test_tast_run(self, mock_chroot_runcmd, mock_cros_runcmd): argument 212 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd 214 self.assertEqual(mock_cros_runcmd.call_count, 1) 217 self.assertEqual(mock_cros_runcmd.call_args_list[0][0], 229 mock_cros_runcmd): argument 244 self.mock_cmd_exec.CrosRunCommand = mock_cros_runcmd 248 self.assertEqual(mock_cros_runcmd.call_count, 1) 251 self.assertEqual(mock_cros_runcmd.call_args_list[0][0],
|
D | machine_manager_unittest.py | 252 def test_try_to_lock_machine(self, mock_cros_runcmd): argument 253 mock_cros_runcmd.return_value = [0, 'false_lock_checksum', ''] 254 self.mock_cmd_exec.CrosRunCommandWOutput = mock_cros_runcmd 260 self.assertEqual(mock_cros_runcmd.call_count, 1) 261 cmd_str = mock_cros_runcmd.call_args[0][0] 263 args_dict = mock_cros_runcmd.call_args[1]
|