Home
last modified time | relevance | path

Searched refs:mock_runcmd (Results 1 – 3 of 3) sorted by relevance

/external/toolchain-utils/crosperf/
Dresults_cache_unittest.py508 def test_copy_files_to(self, mock_copyfiles, mock_runcmd, mock_isdir): argument
512 self.mock_cmd_exec.RunCommand = mock_runcmd
520 self.assertEqual(mock_runcmd.call_count, 0)
529 mock_runcmd.reset_mock()
534 self.assertEqual(mock_runcmd.call_count, 3)
536 self.assertEqual(mock_runcmd.call_args_list[0],
537 mock_runcmd.call_args_list[1])
538 self.assertEqual(mock_runcmd.call_args_list[0],
539 mock_runcmd.call_args_list[2])
540 self.assertEqual(mock_runcmd.call_args_list[0][0], ('mkdir -p /tmp/test',))
[all …]
Dsuite_runner_unittest.py260 def test_skylab_run_client(self, mock_json_loads, mock_runcmd): argument
267 mock_runcmd.return_value = (
272 self.mock_cmd_exec.RunCommandWOutput = mock_runcmd
288 self.assertEqual(mock_runcmd.call_count, 2)
290 args_list = mock_runcmd.call_args_list[0][0]
291 args_dict = mock_runcmd.call_args_list[0][1]
295 args_list = mock_runcmd.call_args_list[1][0]
Dexperiment_factory_unittest.py420 def test_check_skylab_tool(self, mock_exists, mock_runcmd): argument
430 mock_runcmd.return_value = 1
433 self.assertEqual(mock_runcmd.call_count, 1)
439 mock_runcmd.return_value = 0
440 mock_runcmd.call_count = 0
442 self.assertEqual(mock_runcmd.call_count, 1)