Home
last modified time | relevance | path

Searched refs:RunCommand (Results 1 – 25 of 69) sorted by relevance

123

/external/toolchain-utils/automation/common/
Dcommand_executer_test.py85 def RunCommand(self, method, **kwargs): member in CommandExecuterLocalTests
88 return self._executer.RunCommand('%s runHelper %s' % (program, method),
93 exit_code = self.RunCommand('SleepForMinute', command_timeout=3)
99 exit_code = self.RunCommand('IgnoreSigTerm', command_timeout=3)
104 self.assertFalse(self.RunCommand('ReturnTrue'))
107 self.assertTrue(self.RunCommand('ReturnFalse'))
110 self.assertFalse(self.RunCommand('EchoToOutputStream'))
115 self.assertFalse(self.RunCommand('EchoToErrorStream'))
121 self.RunCommand('IsOutputStreamInteractive'),
126 self.RunCommand('IsErrorStreamInteractive'),
[all …]
/external/toolchain-utils/binary_search_tool/
Drun_bisect_test.py20 status = ce.RunCommand(cmd)
27 status = ce.RunCommand(script)
41 status = ce.RunCommand(cmd)
49 status = ce.RunCommand(cmd)
56 status = ce.RunCommand(script)
70 status = ce.RunCommand(cmd)
76 status = ce.RunCommand(test_script)
137 retv = ce.RunCommand(cmd)
153 status = ce.RunCommand(cmd)
161 status = ce.RunCommand(cmd)
Dbinary_search_perforce.py338 self.ce.RunCommand(command)
367 self.ce.RunCommand(command)
376 self.ce.RunCommand(command)
382 self.ce.RunCommand(command)
424 self.current_ce.RunCommand(command)
436 self.current_ce.RunCommand(command)
492 status = ce.RunCommand(command)
/external/perf_data_converter/src/quipper/
Drun_command_test.cc16 EXPECT_EQ(0, RunCommand({"/bin/sh", "-c", "echo 'Hello, world!'"}, &output)); in TEST()
23 EXPECT_EQ(0, RunCommand({"sh", "-c", "echo 'Hello, world!'"}, &output)); in TEST()
31 RunCommand({"dd", "if=/dev/zero", "bs=5", "count=4096"}, &output)); in TEST()
39 EXPECT_EQ(0, RunCommand({"/bin/sh", "-c", "echo 'Hello, world!'"}, nullptr)); in TEST()
45 RunCommand({"/bin/sh", "-c", "echo 'Hello, void!' >&2"}, &output)); in TEST()
51 int ret = RunCommand({"/doesnt-exist/not-bin/true"}, &output); in TEST()
/external/toolchain-utils/crosperf/
Ddownload_images_unittest.py65 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 1)
72 mock_cmd_exec.RunCommand.assert_called_with(expected_args)
92 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)
118 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 2)
120 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[0]), 2)
121 actual_arg = mock_cmd_exec.RunCommand.call_args_list[0][0]
130 mock_cmd_exec.RunCommand.call_args_list[0][1]))
133 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[1]), 2)
134 actual_arg = mock_cmd_exec.RunCommand.call_args_list[1][0]
140 self.assertTrue('{}' in repr(mock_cmd_exec.RunCommand.call_args_list[1][1]))
[all …]
Ddownload_images.py40 _ = self.ce.RunCommand(self.cleanup_command)
88 status = self._ce.RunCommand(command)
114 retval = self._ce.RunCommand(
121 _ = self._ce.RunCommand(clean_cmd)
131 retval = self._ce.RunCommand(command)
144 status = self._ce.RunCommand(cmd)
166 status = self._ce.RunCommand(command)
180 retval = self._ce.RunCommand(command)
189 retval = self._ce.RunCommand(command)
203 status = self._ce.RunCommand(cmd)
[all …]
Dresults_cache.py68 self.ce.RunCommand(command)
163 self.ce.RunCommand(command, print_to_console=False)
372 ret = self.ce.RunCommand(command, print_to_console=False)
389 self.ce.RunCommand(command)
392 self.ce.RunCommand(command)
420 ret = self.ce.RunCommand(command)
431 self.ce.RunCommand(command)
436 ret = self.ce.RunCommand(command)
439 self.ce.RunCommand(command)
708 self.ce.RunCommand(command)
/external/toolchain-utils/
Dremote_gcc_build.py156 if ce.RunCommand(cmd):
172 return ce.RunCommand(commands)
182 ce.RunCommand(command)
184 ce.RunCommand(command)
186 ce.RunCommand(command)
201 ret = ce.RunCommand(command)
229 ce.RunCommand(commands)
243 ce.RunCommand(command)
246 ce.RunCommand(command)
251 ce.RunCommand(command)
[all …]
Dbuild_tool.py85 if self._ce.RunCommand(diff, print_to_console=False) == 0:
131 ret = self._ce.RunCommand(command)
146 self._ce.RunCommand(
213 if not self._ce.RunCommand(command, print_to_console=True):
270 os.path.join(self._chromeos_root, 'chroot')) and self._ce.RunCommand(
357 rv = command_executer.GetCommandExecuter().RunCommand(cmd)
392 self._ce.RunCommand(('cd $(dirname {0}) && '
427 rv = self._ce.RunCommand(command)
469 self._ce.RunCommand('mkdir -p {}'.format(chroot_ndk_root))
470 if self._ce.RunCommand(
[all …]
Drepo_to_repo.py85 self._ce.RunCommand(command)
87 self._ce.RunCommand(command)
102 return self._ce.RunCommand(command)
149 ret = self._ce.RunCommand(command)
156 ret = self._ce.RunCommand(command)
175 ret = self._ce.RunCommand(command)
206 return self._ce.RunCommand(command)
215 ret = self._ce.RunCommand(command)
231 ret = self._ce.RunCommand(command)
243 ret = self._ce.RunCommand(command)
[all …]
Dtc_enter_chroot.py38 retv = command_executer.GetCommandExecuter().RunCommand(command)
44 retv = command_executer.GetCommandExecuter().RunCommand(command)
65 return ce.RunCommand('sudo umount %s' % self.mount_dir)
71 retv = command_executer.GetCommandExecuter().RunCommand(command)
227 retv = command_executer.GetCommandExecuter().RunCommand(command)
246 retv = command_executer.GetCommandExecuter().RunCommand(
254 retv = command_executer.GetCommandExecuter().RunCommand(
301 command_executer.GetCommandExecuter().RunCommand(command)
Dweekly_report.py43 cmd_executer.RunCommand(cmd)
86 cmd_executer.RunCommand(cmd)
177 ret = cmd_executer.RunCommand(cmd)
190 ret = cmd_executer.RunCommand(cmd)
238 retv = cmd_executer.RunCommand(cmd)
249 retv = cmd_executer.RunCommand(command)
Dchromiumos_image_diff.py71 rv = self._ce.RunCommand(command, print_to_console=True)
86 self._ce.RunCommand(
102 if self._ce.RunCommand(command, print_to_console=True) == 0:
103 self._ce.RunCommand('rm {0}'.format(self.unmount_script))
145 command_executer.GetCommandExecuter().RunCommand(
223 ret = cmde.RunCommand(command, print_to_console=False)
237 cmde.RunCommand(command, print_to_console=False)
Dtest_toolchains.py50 return self._ce.RunCommand(command)
55 return self._ce.RunCommand(command)
193 retv = self._ce.RunCommand(copy_cmd)
265 ret = self._ce.RunCommand(command)
271 ret = self._ce.RunCommand(command)
281 self._ce.RunCommand(command)
Dbuild_tc.py83 self._ce.RunCommand(command)
98 self._ce.RunCommand(command)
102 self._ce.RunCommand(command)
172 self._ce.RunCommand(command)
177 self._ce.RunCommand(command)
Dauto_delete_nightly_test_data.py54 if ce.RunCommand(cmd, print_to_console=False, terminated_timeout=480) == 0:
113 rv = ce.RunCommand(cmd, print_to_console=False)
140 rv2 = ce.RunCommand(cmd, print_to_console=False)
Dtest_gcc_dejagnu.py53 ret = self._cmd_exec.RunCommand(cmd, terminated_timeout=9000)
68 ret = self._cmd_exec.RunCommand(cmd, terminated_timeout=300)
74 ret = self._cmd_exec.RunCommand(cmd)
/external/v8/tools/clang/scripts/
Dupdate.py195 def RunCommand(command, msvc_arch=None, env=None, fail_hard=True): function
247 if RunCommand(command, fail_hard=False):
255 RunCommand(command)
538 RunCommand(['cmake'] + bootstrap_args + [LLVM_DIR], msvc_arch='x64')
539 RunCommand(['ninja'], msvc_arch='x64')
543 RunCommand(['ninja', 'check-all'], msvc_arch='x64')
544 RunCommand(['ninja', 'install'], msvc_arch='x64')
637 RunCommand(['cmake'] + threads_enabled_cmake_args + [LLVM_DIR],
639 RunCommand(['ninja'] + tools_with_threading, msvc_arch='x64')
666 RunCommand(['cmake'] + cmake_args + [LLVM_DIR],
[all …]
/external/toolchain-utils/fdo_scripts/
Ddivide_and_merge_profiles_test.py30 self._ce.RunCommand('make')
38 self._ce.RunCommand(command)
87 return self._ce.RunCommand(command)
98 self._ce.RunCommand(command)
107 self._ce.RunCommand(command)
Ddivide_and_merge_profiles.py36 self._ce.RunCommand(command)
65 self._ce.RunCommand(command)
67 self._ce.RunCommand(command)
80 ret = self._ce.RunCommand(command)
84 self._ce.RunCommand(command)
/external/autotest/venv/skylab_suite/
Dswarming_lib.py237 result = cros_build_lib.RunCommand(swarming_cmd, capture_output=True)
251 result = cros_build_lib.RunCommand(swarming_cmd, capture_output=True)
263 cros_build_lib.RunCommand(swarming_cmd, log_output=True)
281 result = cros_build_lib.RunCommand(swarming_cmd, capture_output=True)
298 child_tasks = cros_build_lib.RunCommand(
/external/toolchain-utils/cros_utils/
Dmisc.py125 retval = ce.RunCommand(command)
130 retval2 = ce.RunCommand(command)
325 return command_executer.GetCommandExecuter().RunCommand(
332 return command_executer.GetCommandExecuter().RunCommand(
340 return command_executer.GetCommandExecuter().RunCommand(
438 if command_executer.GetCommandExecuter().RunCommand(
450 return command_executer.GetCommandExecuter().RunCommand(
Dcommand_executer.py184 def RunCommand(self, *args, **kwargs): member in CommandExecuter
374 ret = self.RunCommand('cd %s; cros_sdk %s -- true' % (chromeos_root,
426 return self.RunCommand(
472 return self.RunCommand(
480 return self.RunCommand(
494 return self.RunCommand(
668 def RunCommand(self, *args, **kwargs): member in MockCommandExecuter
/external/toolchain-utils/deprecated/
Dbuild_benchmarks.py81 retval = cmd_executer.RunCommand('chmod +x %s' % runshfile)
107 retval = cmd_executer.RunCommand(command)
111 retval = cmd_executer.RunCommand(command)
120 retval = cmd_executer.RunCommand(command)
/external/toolchain-utils/dejagnu/
Drun_dejagnu.py181 rv = self._executer.RunCommand(command)
186 rv = self._executer.RunCommand(command)
194 rv = self._executer.RunCommand(command)
251 self._executer.RunCommand(
278 self._executer.RunCommand(

123