Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 - 25 of 604) sorted by relevance

12345678910>>...25

/third_party/python/Lib/test/
H A Dtest_subprocess.py8 import subprocess namespace
53 raise unittest.SkipTest("test module requires subprocess")
79 subprocess.run([shell_true]).returncode == 0):
92 # subprocess._active is not used on Windows and is set to None.
93 for inst in subprocess._active:
95 subprocess._cleanup()
97 subprocess._active, "subprocess._active not empty"
107 class PopenExecuteChildRaises(subprocess.Popen):
108 """Popen subclass for testing cleanup of subprocess
[all...]
/third_party/skia/infra/bots/
H A Dgit_utils.py11 import subprocess namespace
26 prev = subprocess.check_output(['git', 'config', '--local', k]).rstrip()
29 except subprocess.CalledProcessError:
32 subprocess.check_call(['git', 'config', '--local', k, v])
37 subprocess.check_call(
40 subprocess.check_call(['git', 'config', '--local', '--unset', k])
61 subprocess.check_call(['git', 'reset', '--hard', 'HEAD'])
62 subprocess.check_call(['git', 'checkout', 'main'])
63 if self._branch_name in subprocess.check_output(['git', 'branch']).split():
64 subprocess
[all...]
H A Dutils.py15 import subprocess namespace
25 GIT = subprocess.check_output([WHICH, 'git']).splitlines()[0]
79 subprocess.check_call([GIT, 'clone', repo_url, dest_dir])
93 output = subprocess.check_output([GIT, 'stash'])
97 self._orig_branch = subprocess.check_output([
100 self._orig_branch = subprocess.check_output([
104 subprocess.check_call([GIT, 'fetch', 'origin'])
106 subprocess.check_call([GIT, 'checkout', '-b', self._branch,
111 subprocess.check_call([GIT, 'reset', '--hard', 'HEAD'])
112 subprocess
[all...]
/third_party/skia/third_party/externals/angle2/android/
H A Dcompress_symbols.py11 import subprocess namespace
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
[all...]
/third_party/node/test/parallel/
H A Dtest-child-process-spawn-event.js6 const subprocess = spawn('echo', ['ok']);
9 subprocess.on('spawn', function() {
18 subprocess.on('error', common.mustNotCall());
19 subprocess.on('spawn', common.mustCall());
20 subprocess.stdout.on('data', mustCallAfterSpawn());
21 subprocess.stdout.on('end', mustCallAfterSpawn());
22 subprocess.stdout.on('close', mustCallAfterSpawn());
23 subprocess.stderr.on('data', common.mustNotCall());
24 subprocess.stderr.on('end', mustCallAfterSpawn());
25 subprocess
[all...]
/third_party/skia/infra/bots/assets/clang_linux/
H A Dcreate.py14 import subprocess namespace
27 subprocess.check_call(["git", "clone", "--depth", "1", "-b", BRANCH,
32 subprocess.check_call(["cmake", "../llvm", "-G", "Ninja",
39 subprocess.check_call(["ninja", "install"])
42 subprocess.check_call(["cp", "bin/llvm-symbolizer", target_dir + "/bin"])
43 subprocess.check_call(["cp", "bin/llvm-profdata", target_dir + "/bin"])
44 subprocess.check_call(["cp", "bin/llvm-cov", target_dir + "/bin"])
45 libstdcpp = subprocess.check_output(["c++",
47 subprocess.check_call(["cp", libstdcpp.strip(), target_dir + "/lib"])
53 subprocess
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A Dwin_tool.py16 import subprocess namespace
127 # https://docs.python.org/2/library/subprocess.html:
135 link = subprocess.Popen(
139 stdout=subprocess.PIPE,
140 stderr=subprocess.STDOUT,
189 subprocess.check_call(
194 subprocess.check_call(
198 subprocess.check_call(
203 subprocess.check_call(ldcmd + add_to_ld)
213 subprocess
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dwin_tool.py16 import subprocess namespace
127 # https://docs.python.org/2/library/subprocess.html:
135 link = subprocess.Popen(
139 stdout=subprocess.PIPE,
140 stderr=subprocess.STDOUT,
189 subprocess.check_call(
194 subprocess.check_call(
198 subprocess.check_call(
203 subprocess.check_call(ldcmd + add_to_ld)
213 subprocess
[all...]
/third_party/python/Lib/ctypes/
H A Dutil.py3 import subprocess namespace
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
[all...]
/third_party/mesa3d/bin/
H A Dcommit_in_branch.py4 import subprocess namespace
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
[all...]
/third_party/ltp/testcases/network/nfsv4/acl/
H A Dtest_acl.py7 import subprocess namespace
19 u = subprocess.getoutput('mkdir ' + path + "/" + testdir)
20 u = subprocess.getoutput('getfacl ' + path + "/" + testdir)
28 u = subprocess.getoutput('touch ' + path + "/" + testdir + testfile)
30 u = subprocess.getoutput('getfacl ' + path + "/" + testdir + testfile)
59 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + test_file)
72 u = subprocess.getoutput('touch ' + path + "/" + testfile)
77 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + testfile)
88 u = subprocess.getoutput('rm ' + path + "/*") # clean directory
96 u = subprocess
[all...]
/third_party/skia/third_party/externals/abseil-cpp/
H A Droll_abseil.py9 import subprocess namespace
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)
76 subprocess.check_call(['patch', '--strip', '1', '-i', os.path.join(abseil_in_chromium_dir, 'patches', patch)])
92 subprocess.check_call(['git', 'add', 'third_party/abseil-cpp'], cwd=chromium_dir)
93 subprocess
[all...]
/third_party/skia/infra/bots/assets/gcloud_linux/
H A Dcreate.py16 import subprocess namespace
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)
/third_party/skia/resources/sksl/
H A Dupdate_fuzzer.py17 import subprocess namespace
52 output = subprocess.check_output(
55 stderr=subprocess.STDOUT)
57 output = subprocess.check_output(
60 stderr=subprocess.STDOUT)
63 output = subprocess.check_output(
66 stderr=subprocess.STDOUT)
68 output = subprocess.check_output(
71 stderr=subprocess.STDOUT)
73 except subprocess
[all...]
/third_party/skia/third_party/externals/spirv-cross/
H A Dtest_shaders.py21 import subprocess namespace
89 p = subprocess.Popen(['malisc', get_shader_type(shader), '--core', 'Mali-T760', '-V', shader], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
103 subprocess.check_call(['xcrun', '--sdk', 'iphoneos', 'metal', '--version'])
109 except subprocess.CalledProcessError:
114 subprocess.check_call(['xcrun', '--sdk', 'macosx', 'metal', '-x', 'metal', '-std=macos-metal' + version, '-'],
115 stdin = subprocess.DEVNULL, stdout = subprocess.DEVNULL, stderr = subprocess
[all...]
/third_party/mbedtls/scripts/
H A Dcode_style.py11 import subprocess namespace
75 output = subprocess.check_output(["git", "ls-files"] + file_patterns,
81 output = subprocess.check_output(cmd, universal_newlines=True)
85 output = subprocess.check_output(cmd, universal_newlines=True)
103 result = subprocess.run([UNCRUSTIFY_EXE, "--version"],
104 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
120 result = subprocess.run(uncrustify_cmd, stdout=subprocess.PIPE,
121 stderr=subprocess
[all...]
/third_party/skia/tools/
H A Dbuild_command_buffer.py18 import subprocess namespace
96 subprocess.check_call(['git', 'fetch'], cwd=chrome_src_dir)
97 except subprocess.CalledProcessError as error:
102 subprocess.check_call(['git', 'checkout', args.chrome_revision],
104 except subprocess.CalledProcessError as error:
110 subprocess.check_call([gclient, 'sync', '--reset', '--force',
113 except subprocess.CalledProcessError as error:
119 subprocess.check_call([gclient, 'runhooks'], cwd=chrome_src_dir)
120 except subprocess.CalledProcessError as error:
134 subprocess
[all...]
/third_party/skia/infra/bots/assets/skp/
H A Dcreate.py17 import subprocess namespace
54 subprocess.check_call(['bash', 'build.sh'])
100 xvfb_proc = subprocess.Popen([
121 subprocess.check_call(webpages_playback_cmd)
130 subprocess.check_call(['sudo', 'kill', '-9', str(xvfb_proc.pid)])
131 except subprocess.CalledProcessError as e:
137 procs = subprocess.check_output(['ps', 'ax']).decode()
145 subprocess.check_call(['kill', '-9', str(pid)])
146 except subprocess.CalledProcessError as e:
155 subprocess
[all...]
/third_party/skia/tools/android/
H A Dupload_to_android.py36 import subprocess namespace
93 subprocess.check_call(
99 subprocess.check_call('%s sync %s tools/repohooks -j 32 -c' % (
104 subprocess.check_call(
106 subprocess.check_call(
108 subprocess.check_call(
133 subprocess.check_call(
136 subprocess.check_call('git cherry-pick FETCH_HEAD', shell=True)
144 subprocess.check_call('git add %s' % SK_USER_CONFIG_PATH, shell=True)
157 subprocess
[all...]
/third_party/skia/tools/rebaseline/
H A Dtoggle_legacy_flag.py24 import subprocess namespace
45 branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
49 stash_output = subprocess.check_output(['git', 'stash']).strip()
55 subprocess.check_call(['git', 'stash', 'pop'])
59 subprocess.check_call(['git', 'pull'])
60 subprocess.check_call(['gclient', 'sync']);
65 subprocess.check_call(['git', 'checkout', '-b', 'legacyflag_%d' % random])
93 subprocess.check_call('git commit -a -m "%s"' % message, shell=True)
94 subprocess.check_call('git cl upload -m "%s" -f' % message,
97 subprocess
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_subprocess.py11 from asyncio import subprocess namespace
117 stdin=subprocess.PIPE,
118 stdout=subprocess.PIPE,
143 stdin=subprocess.PIPE,
144 stdout=subprocess.PIPE,
193 from subprocess import CREATE_NEW_PROCESS_GROUP
198 asyncio.create_subprocess_shell(blocking_shell_command, stdout=asyncio.subprocess.PIPE,
238 stdout=subprocess.PIPE,
264 stdin=subprocess.PIPE,
316 stdin=asyncio.subprocess
[all...]
/third_party/gn/misc/vim/
H A Dgn-format.py19 import subprocess namespace
37 startupinfo = subprocess.STARTUPINFO()
38 startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
39 startupinfo.wShowWindow = subprocess.SW_HIDE
42 p = subprocess.Popen([binary, 'format', '--stdin'],
43 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
44 stdin=subprocess.PIPE, startupinfo=startupinfo,
/third_party/node/tools/gyp/
H A Dgyp_main.py9 import subprocess namespace
15 out = subprocess.Popen(
16 "uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT
28 out = subprocess.Popen(
29 ["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT
/third_party/node/deps/npm/node_modules/node-gyp/gyp/
H A Dgyp_main.py9 import subprocess namespace
15 out = subprocess.Popen(
16 "uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT
28 out = subprocess.Popen(
29 ["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT
/third_party/skia/third_party/externals/oboe/apps/OboeTester/scripts/
H A Ddsp_timing.py30 import subprocess namespace
49 return subprocess.check_output(command)
61 return subprocess.check_output(command)
64 return subprocess.check_output(["adb", "shell", "setprop", property, value])
67 return subprocess.check_output(["adb", "shell", "getprop", property])
97 if subprocess.call(["adb", "shell", "ls", gOutputFile, "2>/dev/null"]) == 0:
98 testOutput = subprocess.check_output(["adb", "shell", "cat", gOutputFile])
104 subprocess.call(["adb", "shell", "rm", gOutputFile])
125 subprocess.call(["adb", "shell", "rm", gOutputFile, "2>/dev/null"])
191 userName = subprocess
[all...]

Completed in 9 milliseconds

12345678910>>...25