Home
last modified time | relevance | path

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

123456

/tools/acloud/internal/lib/
Dadb_tools_test.py16 import subprocess
48 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
52 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
56 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
63 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
76 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
86 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
96 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
103 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
116 self.Patch(subprocess, "check_output",
[all …]
Dssh_test.py20 import subprocess
59 self.Patch(subprocess, "Popen",
60 side_effect=subprocess.CalledProcessError(
62 self.assertRaises(subprocess.CalledProcessError,
95 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
103 subprocess.Popen.assert_called_with(expected_cmd,
112 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
124 subprocess.Popen.assert_called_with(expected_cmd,
133 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
140 subprocess.Popen.assert_called_with(expected_cmd,
[all …]
Dadb_tools.py17 import subprocess
220 subprocess.check_call(adb_disconnect_args)
228 except subprocess.CalledProcessError:
262 subprocess.check_call(adb_connect_args)
263 except subprocess.CalledProcessError:
277 subprocess.check_call(adb_unlock_args.split())
278 except subprocess.CalledProcessError:
296 proc = subprocess.Popen(adb_cmd, stdin=subprocess.PIPE,
297 stdout=subprocess.PIPE,
298 stderr=subprocess.PIPE)
Dssh.py19 import subprocess
58 process = subprocess.Popen(cmd, shell=True, stdin=None,
59 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
85 process = subprocess.Popen(cmd, shell=True, stdin=None,
86 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
123 process = subprocess.Popen(cmd, shell=True, stdin=None,
124 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
150 raise subprocess.CalledProcessError(process.returncode, cmd)
217 subprocess.CalledProcessError),
336 process = subprocess.Popen(ssh_cmd, shell=True, stdin=None,
[all …]
Doxygen_client.py19 import subprocess
59 response = subprocess.check_output(
60 cmd, stderr=subprocess.STDOUT, encoding='utf-8')
73 response = subprocess.check_output([
76 ], stderr=subprocess.STDOUT, encoding='utf-8')
Doxygen_client_test.py18 import subprocess
32 @mock.patch.object(subprocess, "check_output")
53 stderr=subprocess.STDOUT,
65 stderr=subprocess.STDOUT,
Dutils_test.py24 import subprocess
163 self.Patch(subprocess, "check_call")
166 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
174 self.Patch(subprocess, "check_call")
177 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
178 subprocess.check_call.assert_called_with( #pylint: disable=no-member
191 self.Patch(subprocess, "check_output")
195 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
196 subprocess.check_output.assert_called_with( #pylint: disable=no-member
395 call_side_effect = subprocess.CalledProcessError(123, "fake",
[all …]
/tools/external_updater/
Dgit_utils.py18 import subprocess
35 subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True)
47 subprocess.run(cmd, cwd=proj_path, check=True)
53 subprocess.run(cmd, cwd=proj_path, check=True)
70 out = subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True,
79 out = subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True,
93 return subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True,
102 out = subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True,
105 except subprocess.CalledProcessError as ex:
117 out = subprocess.run(cmd, capture_output=True, cwd=proj_path, check=True,
[all …]
Dnotifier.py29 import subprocess
101 subprocess.run(['sendgmr',
106 stdout=subprocess.PIPE,
107 stderr=subprocess.PIPE,
152 except subprocess.CalledProcessError as err:
182 out = subprocess.run([
185 stdout=subprocess.PIPE,
186 stderr=subprocess.PIPE,
214 subprocess.run(params, cwd=_get_android_top())
/tools/treble/build/sandbox/
Drbe_action.py20 import subprocess
38 cleanup = rbe.setup(env, sys.stdout if args.print else subprocess.DEVNULL)
54 subprocess.check_call(
55 bootstrap_cmd, env=env, cwd=src_root, stdout=subprocess.DEVNULL)
69 subprocess.check_call(rewrapper_cmd, env=env, cwd=src_root)
75 subprocess.call(
77 stdout=subprocess.DEVNULL,
78 stderr=subprocess.DEVNULL)
Drbe.py19 import subprocess
124 def setup(env, build_log=subprocess.DEVNULL):
173 if build_log != subprocess.DEVNULL:
179 subprocess.call(
180 proxy_kill_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
181 rbe_proxy = subprocess.Popen(
189 if build_log != subprocess.DEVNULL:
/tools/security/remote_provisioning/attestation_testing/
Dattestation_test_host.py3 import subprocess
15 subprocess.call('adb logcat -c', shell=True, stdout=devnull)
16 subprocess.call('adb install -r ' + APK_DIR, shell=True, stdout=devnull)
17 subprocess.call('adb shell am start -a android.intent.action.MAIN -n com.google.attestationexample/…
24 logcat = subprocess.check_output(['adb', 'logcat', '-d'], stderr=subprocess.STDOUT)
38 subprocess.call('adb uninstall com.google.attestationexample', shell=True, stdout=devnull)
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py21 import subprocess32 as subprocess namespace
23 import subprocess
136 proc = subprocess.Popen(command,
138 stdout=subprocess.PIPE,
139 stderr=subprocess.PIPE,
147 except subprocess.TimeoutExpired:
190 proc = subprocess.Popen(command,
194 stdout=subprocess.PIPE,
195 stderr=subprocess.STDOUT)
Dprocess.py21 import subprocess
64 subprocess.CREATE_NEW_PROCESS_GROUP)
161 subprocess.check_call('taskkill /F /T /PID %s' % self._process.pid)
183 except subprocess.TimeoutExpired:
239 return subprocess.Popen(command, **kwargs)
253 stdout=subprocess.PIPE,
254 stderr=subprocess.STDOUT,
/tools/acloud/setup/
Dsetup_common.py21 import subprocess
69 stderr=subprocess.STDOUT))
70 except subprocess.CalledProcessError as cpe:
95 stderr=subprocess.STDOUT)
99 except subprocess.CalledProcessError as error:
127 stderr=subprocess.STDOUT)
131 except subprocess.CalledProcessError as error:
/tools/asuite/atest/test_runners/
Drobolectric_test_runner_unittest.py21 import subprocess
73 subprocess.run(
76 robo_proc = subprocess.Popen(
94 subprocess.run(
97 robo_proc = subprocess.Popen(
123 subprocess.call("echo '%s' -n >> %s" % (data, event_file.name), shell=True)
124 robo_proc = subprocess.Popen(
193 subprocess.call("echo '%s' -n >> %s" % (data, event_file.name), shell=True)
194 robo_proc = subprocess.Popen(
/tools/asuite/atest/coverage/
Dcoverage.py19 import subprocess
74 version_output = subprocess.check_output(
331 subprocess.run(
332 cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
334 except subprocess.CalledProcessError as err:
367 subprocess.run(
368 cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
373 except subprocess.CalledProcessError as err:
386 subprocess.run(
387 cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
[all …]
/tools/treble/gki/
Drepack_gki_lib.py4 import subprocess
52 subprocess.check_call(cmd, stdout=zipped_kernel)
74 mkbootimg_args = subprocess.check_output(cmd).decode('utf-8').split(' ')
84 subprocess.check_call(cmd)
120 subprocess.check_call(cmd)
128 subprocess.check_call(cmd, cwd=unzip_dir)
147 subprocess.check_call(cmd)
160 subprocess.check_call(cmd, cwd=unzip_dir)
/tools/asuite/
Dpreupload_hook_script.py23 import subprocess
36 if subprocess.run(shlex.split(cmd), cwd=cwd, check=False).returncode:
43 run_lint_on_file = lambda file: subprocess.run(
73 if subprocess.run(
86 if subprocess.run(
94 completed_process = subprocess.run(
101 subprocess.run(
174 files_to_upload = subprocess.check_output(
/tools/external_updater/tests/endtoend/treebuilder/
Dfakerepo.py18 import subprocess
60 subprocess.run(
64 subprocess.run(["repo", "sync", "-c"], check=True)
70 subprocess.run(["git", "init"], check=True)
74 subprocess.run(["git", "add", "default.xml"], check=True)
75 subprocess.run(["git", "commit", "-m", "Initial commit."], check=True)
/tools/test/connectivity/acts_tests/tests/meta/
DActsUnitTest.py17 import subprocess
43 test_process = subprocess.Popen([sys.executable, test_script],
44 stdout=subprocess.PIPE,
45 stderr=subprocess.STDOUT)
50 except subprocess.TimeoutExpired:
/tools/dexter/dexter/
Ddexter_tests.py5 import subprocess
59 return subprocess.Popen(
62 stdin = subprocess.PIPE,
63 stdout = subprocess.PIPE,
64 stderr = subprocess.STDOUT).communicate(input = stdin_content)[0]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dssh.py17 import subprocess
39 self, process: Union[subprocess.CompletedProcess,
40 subprocess.CalledProcessError]
81 def __init__(self, err: subprocess.TimeoutExpired):
206 process = subprocess.run(full_command,
210 except subprocess.CalledProcessError as e:
226 except subprocess.TimeoutExpired as e:
/tools/asuite/atest/integration_tests/
Dresult_compare_test.py28 import subprocess
89 completed_process: subprocess.CompletedProcess,
116 ) -> subprocess.CompletedProcess:
117 return subprocess.run(
125 stderr=subprocess.STDOUT,
126 stdout=subprocess.PIPE,
/tools/test/mobly_extensions/scripts/
Dlocal_mobly_runner.py42 import subprocess
163 subprocess.check_call(f'm -j {module}', shell=True,
165 except subprocess.CalledProcessError as e:
181 subprocess.check_output(
187 except subprocess.CalledProcessError as e:
271 subprocess.check_call([sys.executable, '-m', 'venv', venv_dir])
281 subprocess.check_call(
315 subprocess.check_output(
323 subprocess.check_call(
379 subprocess.run(cmd, env=env)

123456