Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_update.py28 import subprocess
113 p = subprocess.Popen(prefix + ['gsutil', 'update', 'gs://pub'],
114 cwd=gsutil_dst, stdout=subprocess.PIPE,
115 stderr=subprocess.PIPE)
123 p = subprocess.Popen(
125 cwd=gsutil_dst, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
133 p = subprocess.Popen(prefix + ['gsutil', 'update', suri(src_tarball)],
134 cwd=gsutil_dst, stdout=subprocess.PIPE,
135 stderr=subprocess.PIPE)
145 p = subprocess.Popen(prefix + ['gsutil', 'update', '-f', suri(src_tarball)],
[all …]
/external/skia/platform_tools/android/bin/
Dadb_list_devices.py13 import subprocess
33 device_proc = subprocess.Popen([adb, '-s', serial, 'shell', 'cat',
34 INFO_FILE], stdout=subprocess.PIPE)
92 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
97 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
103 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
112 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
133 proc = subprocess.Popen([adb, 'devices'], stdout=subprocess.PIPE)
/external/autotest/frontend/health/
Dcheck_test_health_unittest.py7 import logging, mox, subprocess, unittest
19 self.mox.StubOutWithMock(subprocess, 'call')
29 subprocess.call(['script1.sh', 'arg']).AndReturn(0)
31 subprocess.call(['script2.sh']).AndReturn(0)
42 subprocess.call(mox.IgnoreArg()).AndReturn(0)
53 subprocess.call(['pass.py']).AndReturn(0)
55 subprocess.call(['fail.sh', 'arg']).AndReturn(1)
68 subprocess.call(mox.IgnoreArg()).AndReturn(1)
80 subprocess.call(['script1.sh', 'arg']).AndReturn(1)
93 self.mox.StubOutWithMock(subprocess, 'call')
[all …]
/external/webrtc/webrtc/tools/e2e_quality/audio/
Drun_audio_test.py24 import subprocess
56 proc = subprocess.Popen(command, stdout=subprocess.PIPE)
71 retcode = subprocess.call(command, stdout=subprocess.PIPE)
78 voe_proc = subprocess.Popen(command)
91 play_proc = subprocess.Popen(command)
96 record_proc = subprocess.Popen(command)
108 retcode = subprocess.call(command, stdout=subprocess.PIPE)
115 proc = subprocess.Popen(command, stdout=subprocess.PIPE)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dposix_platform_backend.py10 import subprocess
31 sudoers = subprocess.check_output(['/usr/bin/sudo', '-l'])
41 return subprocess.Popen(args, stdout=subprocess.PIPE).communicate()[0]
114 p = subprocess.Popen(
115 ['/usr/bin/sudo', '-nv'], stdin=subprocess.PIPE,
116 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
146 subprocess.check_call(['/usr/bin/sudo', '-v'])
148 stderror_destination = subprocess.PIPE
152 return subprocess.Popen(
153 args, stdout=subprocess.PIPE, stderr=stderror_destination)
Dlinux_platform_backend.py8 import subprocess
76 p = subprocess.Popen(['/sbin/sysctl', '-w', 'vm.drop_caches=3'])
110 (out, err) = subprocess.Popen(cmd,
111 stdout=subprocess.PIPE,
112 stderr=subprocess.PIPE).communicate()
122 return 'ipfw_mod' in subprocess.Popen(
123 ['lsmod'], stdout=subprocess.PIPE).communicate()[0]
145 subprocess.check_call(['/usr/bin/sudo', 'insmod', ipfw_mod])
147 subprocess.check_call(
/external/skia/tools/
Dgit-sync-deps34 import subprocess
52 subprocess.call([git, '--version'], stdout=devnull)
78 disable = subprocess.check_output(
81 except subprocess.CalledProcessError:
95 toplevel = subprocess.check_output(
98 except subprocess.CalledProcessError:
122 subprocess.check_call(
136 if 0 == subprocess.call(
143 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
145 if 0 != subprocess.call(
[all …]
Dmerge_static_libs.py8 import subprocess
32 proc = subprocess.Popen([ar, '-t', in_lib], stdout=subprocess.PIPE)
36 proc = subprocess.Popen([ar, '-x', in_lib], stdout=subprocess.PIPE,
37 stderr=subprocess.STDOUT)
50 if not subprocess.call([ar, '-crs', out_lib] + objects) == 0:
54 subprocess.call(['lib', '/OUT:%s' % out_lib] + in_libs)
Dbuild_command_buffer.py18 import subprocess
71 subprocess.check_call(['fetch', 'chromium'], cwd=args.chrome_dir)
72 except subprocess.CalledProcessError as error:
112 subprocess.check_call(['git', 'fetch'], cwd=chrome_src_dir)
113 except subprocess.CalledProcessError as error:
118 subprocess.check_call(['git', 'checkout', args.chrome_revision],
120 except subprocess.CalledProcessError as error:
127 subprocess.check_call([gclient, 'sync', '--reset', '--force'],
129 except subprocess.CalledProcessError as error:
134 subprocess.check_call(['ninja'] + shlex.split(args.extra_ninja_args) +
[all …]
/external/chromium-trace/catapult/telemetry/build/
Dlinux_setup_msr.py16 import subprocess
32 proc = subprocess.Popen('/sbin/lsmod', stdout=subprocess.PIPE)
64 proc = subprocess.Popen(['/sbin/getcap', RDMSR_PATH], stdout=subprocess.PIPE)
96 ret = subprocess.call(['/sbin/modprobe', 'msr'])
102 ret = subprocess.call(['/bin/chmod', 'a+r', MSR_DEV_FILE_PATH])
109 ret = subprocess.call(['/usr/bin/apt-get', 'install', '-y', 'msr-tools'])
115 ret = subprocess.call(['/sbin/setcap', 'cap_sys_rawio+ep', RDMSR_PATH])
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dvtune_profiler.py7 import subprocess
30 self._proc = subprocess.Popen(
31 cmd, stdout=self._tmp_output_file, stderr=subprocess.STDOUT)
41 subprocess.call(['amplxe-cl', '-command', 'stop', '-r', self._output_file])
71 subprocess.call(['amplxe-cl', '-finalize', '-r', self._output_file,
124 proc = subprocess.Popen(['amplxe-cl', '-version'],
125 stderr=subprocess.STDOUT,
126 stdout=subprocess.PIPE)
133 proc = subprocess.Popen(['adb', 'shell', 'su', '-c', 'id'],
134 stderr=subprocess.STDOUT,
[all …]
/external/clang/tools/clang-format/
Dgit-clang-format32 import subprocess
238 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
265 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
344 p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
366 clang_format = subprocess.Popen(clang_format_cmd, stdin=subprocess.PIPE,
367 stdout=subprocess.PIPE)
375 hash_object = subprocess.Popen(hash_object_cmd, stdin=clang_format.stdout,
376 stdout=subprocess.PIPE)
421 subprocess.check_call(['git', 'diff', old_tree, new_tree, '--'])
447 subprocess.check_call(['git', 'checkout', '--patch', new_tree])
[all …]
Dclang-format.py31 import subprocess
70 startupinfo = subprocess.STARTUPINFO()
71 startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
72 startupinfo.wShowWindow = subprocess.SW_HIDE
82 p = subprocess.Popen(command,
83 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
84 stdin=subprocess.PIPE, startupinfo=startupinfo)
/external/autotest/client/site_tests/security_OpenFDs/
Dsecurity_OpenFDs.py9 import subprocess
69 subprocess.call('ps -ef > "%s/ps-ef.txt"' % self.resultsdir,
71 subprocess.call('ls -l /proc/*[0-9]*/fd > "%s/proc-fd.txt"' %
102 p1 = subprocess.Popen(['ps', '-C', process, '-o', 'pid,command'],
103 stdout=subprocess.PIPE)
108 p2 = subprocess.Popen(['grep', '-v', '--',
110 stdin=p1.stdout, stdout=subprocess.PIPE)
111 p3 = subprocess.Popen(['grep', arg_regex], stdin=p2.stdout,
112 stdout=subprocess.PIPE)
113 p4 = subprocess.Popen(['awk', '{print $1}'], stdin=p3.stdout,
[all …]
/external/autotest/site_utils/
Dmass_update.py15 import subprocess
115 return subprocess.Popen(
118 stdout=subprocess.PIPE,
119 stderr=subprocess.PIPE).wait() == 0
129 exit_code = subprocess.Popen(
148 success = subprocess.Popen(
151 stdout=subprocess.PIPE,
152 stderr=subprocess.PIPE).wait() == 0
165 success = subprocess.Popen(
168 stdout=subprocess.PIPE,
[all …]
Ddeploy_production_local.py19 import subprocess
59 out = subprocess.check_output(['repo', 'status'], stderr=subprocess.STDOUT)
74 output = strip_terminal_codes(subprocess.check_output(cmd))
111 subprocess.check_output(['repo', 'sync'])
173 subprocess.check_output(expanded_command, shell=True,
174 stderr=subprocess.STDOUT)
175 except subprocess.CalledProcessError as e:
196 subprocess.check_call(cmd)
212 return subprocess.check_output(['sudo', 'status', service_name])
312 out = subprocess.check_output(cmd, cwd=after_dir,
[all …]
/external/v8/tools/testrunner/local/
Dcommands.py29 import subprocess
57 popen_args = subprocess.list2cmdline(args)
66 process = subprocess.Popen(
68 stdout=subprocess.PIPE,
69 stderr=subprocess.PIPE,
86 tk = subprocess.Popen(
88 stdout=subprocess.PIPE,
89 stderr=subprocess.PIPE,
/external/chromium-trace/catapult/telemetry/telemetry/util/mac/
Dkeychain_helper.py5 import subprocess
23 child = subprocess.Popen(path, stdout=subprocess.PIPE)
35 child = subprocess.Popen(command, stderr=subprocess.PIPE)
55 child = subprocess.Popen(command)
/external/autotest/client/site_tests/platform_Quipper/
Dplatform_Quipper.py4 import subprocess
68 result = subprocess.check_output(perf_command)
69 except subprocess.CalledProcessError:
78 result = subprocess.check_output(quipper_command,
79 stderr=subprocess.STDOUT)
80 except subprocess.CalledProcessError:
/external/tpm2/generator/
Dgenerator.py17 import subprocess
62 components = subprocess.check_output(['tar', 'tf', tar_file_name],
63 stderr=subprocess.STDOUT)
66 subprocess.check_output(tar_extract_base + [tar_file_name, '-x', name],
67 stderr=subprocess.STDOUT)
70 subprocess.check_output(tar_extract_base + [tar_file_name, '-x', name],
71 stderr=subprocess.STDOUT)
104 except subprocess.CalledProcessError as e:
/external/llvm/utils/lit/lit/
Dutil.py7 import subprocess
66 p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
162 p = subprocess.Popen(command, cwd=cwd,
163 stdin=subprocess.PIPE,
164 stdout=subprocess.PIPE,
165 stderr=subprocess.PIPE,
185 cmd = subprocess.Popen(['xcrun', '--show-sdk-path'],
186 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/external/pdfium/tools/drmemory/scripts/
Dcommon.py9 import subprocess
25 return subprocess.Popen(proc)
48 p = subprocess.Popen(proc, universal_newlines=True,
50 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
75 subprocess.call(["taskkill", "/T", "/F", "/PID", str(p.pid)])
221 p = subprocess.Popen(["cygpath", "-m", path],
222 stdout=subprocess.PIPE,
223 stderr=subprocess.PIPE)
/external/clang/utils/check_cfc/
Dobj_diff.py9 import subprocess
21 p = subprocess.Popen([disassembler, '-d', objfile],
22 stdout=subprocess.PIPE,
23 stderr=subprocess.PIPE)
32 …p = subprocess.Popen([disassembler, '-WliaprmfsoRt', objfile], stdout=subprocess.PIPE, stderr=subp…
/external/libvpx/libvpx/tools/
Dlint-hunks.py14 import subprocess
40 class Subprocess(subprocess.Popen):
80 tl = Subprocess(TOPLEVEL_CMD, stdout=subprocess.PIPE)
96 p = Subprocess(diff_cmd, stdout=subprocess.PIPE)
113 show = Subprocess(show_cmd, stdout=subprocess.PIPE)
115 stdin=show.stdout, stderr=subprocess.PIPE)
120 stdin=subprocess.PIPE, stderr=subprocess.PIPE)
/external/autotest/client/profilers/sar/
Dsar.py7 import os, shutil, subprocess, time
33 t_process = subprocess.Popen(t_cmd, shell=True,
34 stdout=subprocess.PIPE,
35 stderr=subprocess.PIPE)
58 self.sar_process = subprocess.Popen(cmd, shell=True, stdout=logfile,
59 stderr=subprocess.STDOUT)

12345678910>>...20