Home
last modified time | relevance | path

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

12345678910>>...79

/external/python/cpython2/Lib/test/
Dtest_subprocess.py3 import subprocess
56 for inst in subprocess._active:
58 subprocess._cleanup()
59 self.assertFalse(subprocess._active, "subprocess._active not empty")
75 class PopenExecuteChildRaises(subprocess.Popen):
87 rc = subprocess.call([sys.executable, "-c",
93 rc = subprocess.check_call([sys.executable, "-c",
99 with self.assertRaises(subprocess.CalledProcessError) as c:
100 subprocess.check_call([sys.executable, "-c",
106 output = subprocess.check_output(
[all …]
/external/zstd/build/meson/tests/
DvalgrindTest.py11 import subprocess
20 subprocess.check_call([*VALGRIND_ARGS, datagen, '-g50M'], stdout=subprocess.DEVNULL)
22 if subprocess.call([*VALGRIND_ARGS, zstd],
23 stdout=subprocess.DEVNULL) == 0:
24 raise subprocess.CalledProcessError('zstd without argument should have failed')
26 with subprocess.Popen([datagen, '-g80'], stdout=subprocess.PIPE) as p1, \
27 subprocess.Popen([*VALGRIND_ARGS, zstd, '-', '-c'],
29 stdout=subprocess.DEVNULL) as p2:
33 raise subprocess.CalledProcessError()
35 with subprocess.Popen([datagen, '-g16KB'], stdout=subprocess.PIPE) as p1, \
[all …]
/external/python/cpython3/Lib/test/
Dtest_subprocess.py7 import subprocess
75 subprocess.run([shell_true]).returncode == 0):
89 for inst in subprocess._active:
91 subprocess._cleanup()
93 subprocess._active, "subprocess._active not empty"
103 class PopenExecuteChildRaises(subprocess.Popen):
114 p = subprocess.Popen(ZERO_RETURN_CMD,
115 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
116 stderr=subprocess.PIPE)
128 p = subprocess.Popen(ZERO_RETURN_CMD,
[all …]
Dtest_cmd_line.py6 import subprocess
79 out = subprocess.check_output(args)
96 PIPE = subprocess.PIPE
97 p = subprocess.Popen(cmd, stdout=PIPE, stderr=PIPE)
180 p = subprocess.Popen(
182 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
217 return subprocess.run(cmd, stdout=subprocess.PIPE, text=True)
223 return subprocess.run(cmd, stdout=subprocess.PIPE,
228 return subprocess.run(cmd, stdout=subprocess.PIPE, text=True)
262 p = subprocess.Popen(
[all …]
/external/skia/infra/bots/
Dgit_utils.py11 import subprocess
26 prev = subprocess.check_output([
30 except subprocess.CalledProcessError:
33 subprocess.check_call(['git', 'config', '--local', k, v])
38 subprocess.check_call(
41 subprocess.check_call(['git', 'config', '--local', '--unset', k])
62 subprocess.check_call(['git', 'reset', '--hard', 'HEAD'])
63 subprocess.check_call(['git', 'checkout', 'main'])
64 if self._branch_name in subprocess.check_output([
66 subprocess.check_call(['git', 'branch', '-D', self._branch_name])
[all …]
/external/angle/android/
Dcompress_symbols.py11 import subprocess
31 result = subprocess.call(copy_cmd)
33 nm_cmd = subprocess.Popen([args.nm, '-D', args.output, '--format=posix', '--defined-only'],
34 stdout=subprocess.PIPE)
36 awk_cmd = subprocess.Popen(['awk', '{ print $1}'], stdin=nm_cmd.stdout, stdout=subprocess.PIPE)
39 sort_cmd = subprocess.Popen(['sort'], stdin=awk_cmd.stdout, stdout=dynsym_out)
44 nm_cmd = subprocess.Popen([args.nm, args.output, '--format=posix', '--defined-only'],
45 stdout=subprocess.PIPE)
47 awk_cmd = subprocess.Popen(['awk', '{ if ($2 == "T" || $2 == "t" || $2 == "D") print $1 }'],
49 stdout=subprocess.PIPE)
[all …]
/external/perfetto/tools/
Dmeasure_tp_performance.py21 import subprocess
35 tp = subprocess.Popen(
37 stdin=subprocess.PIPE,
38 stdout=None if args.verbose else subprocess.DEVNULL,
39 stderr=subprocess.PIPE,
73 config = subprocess.check_output(
75 stderr=subprocess.DEVNULL,
83 profile = subprocess.Popen(
85 stdin=subprocess.PIPE,
86 stdout=None if args.verbose else subprocess.DEVNULL,
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Ddockerjob.py22 import subprocess
37 return subprocess.call(['docker', 'kill', str(cid)],
38 stdin=subprocess.PIPE,
40 stderr=subprocess.STDOUT) == 0
48 output = subprocess.check_output('docker port %s %s' % (cid, port),
52 except subprocess.CalledProcessError as e:
64 output = subprocess.check_output(cmd, stderr=_DEVNULL, shell=True)
71 except subprocess.CalledProcessError as e:
82 output = subprocess.check_output([
88 except subprocess.CalledProcessError as e:
[all …]
/external/grpc-grpc/tools/run_tests/python_utils/
Ddockerjob.py22 import subprocess
36 return subprocess.call(
38 stdin=subprocess.PIPE,
40 stderr=subprocess.STDOUT) == 0
48 output = subprocess.check_output(
51 except subprocess.CalledProcessError as e:
62 output = subprocess.check_output(
70 except subprocess.CalledProcessError as e:
88 return subprocess.call(
90 stdin=subprocess.PIPE,
[all …]
/external/grpc-grpc/test/cpp/naming/
Dresolver_component_tests_runner.py20 import subprocess
66 tcp_connect_subprocess = subprocess.Popen(python_args([
75 dns_resolver_subprocess = subprocess.Popen(python_args([
80 stdout=subprocess.PIPE)
101 dns_server_subprocess = subprocess.Popen(python_args([
105 stdin=subprocess.PIPE,
123 current_test_subprocess = subprocess.Popen([
135 current_test_subprocess = subprocess.Popen([
147 current_test_subprocess = subprocess.Popen([
159 current_test_subprocess = subprocess.Popen([
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/profiling/bloat/
Dbloat_diff.py22 import subprocess
51 subprocess.check_call('mkdir -p %s' % output_dir, shell=True, cwd='.')
52 subprocess.check_call(
56 subprocess.check_call('make -j%d' % args.jobs, shell=True, cwd=output_dir)
62 where_am_i = subprocess.check_output(
65 subprocess.check_call(['git', 'checkout', args.diff_base])
66 subprocess.check_call(['git', 'submodule', 'update'])
71 subprocess.check_call(['git', 'checkout', where_am_i])
72 subprocess.check_call(['git', 'submodule', 'update'])
74 subprocess.check_call('make -j%d' % args.jobs,
[all …]
/external/grpc-grpc/tools/profiling/bloat/
Dbloat_diff.py22 import subprocess
49 subprocess.check_call('make -j%d' % args.jobs, shell=True, cwd='.')
58 where_am_i = subprocess.check_output(
60 subprocess.check_call(['git', 'checkout', args.diff_base])
61 subprocess.check_call(['git', 'submodule', 'update'])
65 except subprocess.CalledProcessError, e:
66 subprocess.check_call(['make', 'clean'])
69 subprocess.check_call(['git', 'checkout', where_am_i])
70 subprocess.check_call(['git', 'submodule', 'update'])
72 subprocess.check_call(
[all …]
/external/python/cpython3/Lib/ctypes/
Dutil.py3 import subprocess
124 proc = subprocess.Popen(args,
125 stdout=subprocess.PIPE,
126 stderr=subprocess.STDOUT,
159 proc = subprocess.Popen(("/usr/ccs/bin/dump", "-Lpv", f),
160 stdout=subprocess.PIPE,
161 stderr=subprocess.DEVNULL)
181 proc = subprocess.Popen((objdump, '-p', '-j', '.dynamic', f),
182 stdout=subprocess.PIPE,
183 stderr=subprocess.DEVNULL)
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_exit_test.py24 import subprocess
77 process = subprocess.Popen(
84 process = subprocess.Popen(
90 process = subprocess.Popen(
97 process = subprocess.Popen(
104 process = subprocess.Popen(
111 process = subprocess.Popen(
119 process = subprocess.Popen(
126 process = subprocess.Popen(
133 process = subprocess.Popen(
[all …]
/external/bcc/tests/python/
Dtest_debuginfo.py6 import subprocess
49 subprocess.check_output('objcopy --only-keep-debug dummy dummy.debug'
52 subprocess.check_output('strip dummy'.split())
53 self.process = subprocess.Popen('./dummy', stdout=subprocess.PIPE)
85 subprocess.check_output('g++ -o dummy dummy.cc'.split())
86 lines = subprocess.check_output('nm dummy'.split()).splitlines()
94 subprocess.check_output('objcopy --add-gnu-debuglink=dummy.debug dummy'
99 subprocess.check_output('rm dummy dummy.debug'.split())
110 subprocess.check_output(('g++ -o dummy -Xlinker ' + \
113 lines = subprocess.check_output('nm dummy'.split()).splitlines()
[all …]
/external/mesa3d/bin/
Dcommit_in_branch.py4 import subprocess
42 ret = subprocess.call(['git', 'cat-file', '-e', commit],
43 stdout=subprocess.DEVNULL,
44 stderr=subprocess.DEVNULL)
52 ret = subprocess.call(['git', 'merge-base', '--is-ancestor',
54 stdout=subprocess.DEVNULL,
55 stderr=subprocess.DEVNULL)
64 out = subprocess.check_output(['git', 'log', '--format=%H',
67 stderr=subprocess.DEVNULL)
80 out = subprocess.check_output(['git', 'rev-parse', commit],
[all …]
/external/clang/tools/scan-build-py/tests/functional/cases/
D__init__.py9 import subprocess
32 kwargs.update({'stdout': subprocess.PIPE, 'stderr': subprocess.STDOUT})
33 return subprocess.call(cmd, *args, **kwargs)
37 kwargs.update({'stdout': subprocess.PIPE, 'stderr': subprocess.STDOUT})
38 return subprocess.check_call(cmd, *args, **kwargs)
42 child = subprocess.Popen(analyzer_cmd + ['-v'] + build_cmd,
44 stdout=subprocess.PIPE,
45 stderr=subprocess.STDOUT)
63 raise subprocess.CalledProcessError(
/external/python/setuptools/setuptools/tests/
Dtest_windows_wrappers.py18 import subprocess
109 proc = subprocess.Popen(
110 cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
147 proc = subprocess.Popen(
149 stdout=subprocess.PIPE,
150 stdin=subprocess.PIPE,
151 stderr=subprocess.STDOUT)
189 proc = subprocess.Popen(
190 cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE,
191 stderr=subprocess.STDOUT)
/external/skia/infra/bots/assets/gcloud_linux/
Dcreate.py16 import subprocess
30 subprocess.check_call(['curl', GCLOUD_URL, '-o', GCLOUD_ARCHIVE])
33 subprocess.check_call(['tar', '-xzf', GCLOUD_ARCHIVE,
42 subprocess.check_call([gcloud_exe, 'components',
45 subprocess.check_call([gcloud_exe, 'components',
48 subprocess.check_call([gcloud_exe, 'components',
51 subprocess.check_call([gcloud_exe, 'components',
57 subprocess.check_call(['chmod', '+x', os.path.join(target_dir, fs_jar)])
58 subprocess.check_call([gcloud_exe, 'components','update', '--quiet'], env=env)
/external/openthread/tools/harness-sniffer/
DOT_Sniffer.py31 import subprocess
42 self.subprocess = None
51 …p_discover = subprocess.Popen('extcap_ot.bat --extcap-interfaces', stdout=subprocess.PIPE, shell=T…
74 p_where = subprocess.Popen(
76 stdout=subprocess.PIPE,
101 self.subprocess = subprocess.Popen(cmd)
113 if self.subprocess:
114 self.subprocess.terminate()
115 self.subprocess.wait()
/external/cronet/third_party/abseil-cpp/
Droll_abseil.py9 import subprocess
17 subprocess.check_call(['git', 'clone', ABSL_URI],
22 subprocess.check_call(['git', 'checkout', 'main'], cwd=chromium_dir)
23 subprocess.check_call(['git', 'pull', '--rebase'], cwd=chromium_dir)
24 subprocess.check_call(['gclient', 'sync'], cwd=chromium_dir)
30 stdout = subprocess.check_output(['git', 'log', '-n1', '--pretty=short'],
70 subprocess.check_call(params, cwd=chromium_dir)
76subprocess.check_call(['patch', '--strip', '1', '-i', os.path.join(abseil_in_chromium_dir, 'patche…
92 subprocess.check_call(['git', 'add', 'third_party/abseil-cpp'], cwd=chromium_dir)
93 subprocess.check_call(['git', 'commit', '-m', desc], cwd=chromium_dir)
[all …]
/external/angle/third_party/abseil-cpp/
Droll_abseil.py9 import subprocess
17 subprocess.check_call(['git', 'clone', ABSL_URI],
22 subprocess.check_call(['git', 'checkout', 'main'], cwd=chromium_dir)
23 subprocess.check_call(['git', 'pull', '--rebase'], cwd=chromium_dir)
24 subprocess.check_call(['gclient', 'sync'], cwd=chromium_dir)
30 stdout = subprocess.check_output(['git', 'log', '-n1', '--pretty=short'],
70 subprocess.check_call(params, cwd=chromium_dir)
76subprocess.check_call(['patch', '--strip', '1', '-i', os.path.join(abseil_in_chromium_dir, 'patche…
92 subprocess.check_call(['git', 'add', 'third_party/abseil-cpp'], cwd=chromium_dir)
93 subprocess.check_call(['git', 'commit', '-m', desc], cwd=chromium_dir)
[all …]
/external/webrtc/third_party/abseil-cpp/
Droll_abseil.py9 import subprocess
17 subprocess.check_call(['git', 'clone', ABSL_URI],
22 subprocess.check_call(['git', 'checkout', 'main'], cwd=chromium_dir)
23 subprocess.check_call(['git', 'pull', '--rebase'], cwd=chromium_dir)
24 subprocess.check_call(['gclient', 'sync'], cwd=chromium_dir)
30 stdout = subprocess.check_output(['git', 'log', '-n1', '--pretty=short'],
70 subprocess.check_call(params, cwd=chromium_dir)
76subprocess.check_call(['patch', '--strip', '1', '-i', os.path.join(abseil_in_chromium_dir, 'patche…
92 subprocess.check_call(['git', 'add', 'third_party/abseil-cpp'], cwd=chromium_dir)
93 subprocess.check_call(['git', 'commit', '-m', desc], cwd=chromium_dir)
[all …]
/external/cronet/third_party/libxml/chromium/
Droll.py11 import subprocess
256 subprocess.check_call(command, shell=(os.name == 'nt'))
289 subprocess.check_call(['sed', '-i', '-e', program, input_filename])
327 commit = subprocess.check_output(
330 subprocess.check_call(
337 subprocess.check_call(
344 subprocess.check_call(['../src/autogen.sh'] + XML_CONFIGURE_OPTIONS)
345 subprocess.check_call(['make', 'dist-all'])
348 tar_file = subprocess.check_output(
371 subprocess.check_call(
[all …]
/external/python/cpython3/Doc/library/
Dasyncio-subprocess.rst3 .. _asyncio-subprocess:
9 **Source code:** :source:`Lib/asyncio/subprocess.py`,
27 stdout=asyncio.subprocess.PIPE,
28 stderr=asyncio.subprocess.PIPE)
46 Because all asyncio subprocess functions are asynchronous and asyncio
67 Create a subprocess.
71 (if :attr:`subprocess.PIPE` is passed to *stdout* and *stderr* arguments).
73 Return a :class:`~asyncio.subprocess.Process` instance.
89 (if :attr:`subprocess.PIPE` is passed to *stdout* and *stderr* arguments).
91 Return a :class:`~asyncio.subprocess.Process` instance.
[all …]

12345678910>>...79