Home
last modified time | relevance | path

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

1234

/tools/acloud/internal/lib/
Dadb_tools_test.py16 import subprocess
40 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
44 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
48 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
55 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
68 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
78 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE)
88 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE)
96 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE)
97 self.Patch(subprocess, "check_call", return_value=True)
[all …]
Dadb_tools.py17 import subprocess
148 device_info = subprocess.check_output(adb_cmd)
192 subprocess.check_call(adb_disconnect_args)
200 except subprocess.CalledProcessError:
234 subprocess.check_call(adb_connect_args)
235 except subprocess.CalledProcessError:
249 subprocess.check_call(adb_unlock_args.split())
250 except subprocess.CalledProcessError:
268 proc = subprocess.Popen(adb_cmd, stdin=subprocess.PIPE,
269 stdout=subprocess.PIPE,
[all …]
Dssh_test.py19 import subprocess
51 self.Patch(subprocess, "Popen",
52 side_effect=subprocess.CalledProcessError(
54 self.assertRaises(subprocess.CalledProcessError,
82 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
87 subprocess.Popen.assert_called_with(expected_cmd,
95 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
105 subprocess.Popen.assert_called_with(expected_cmd,
113 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
118 subprocess.Popen.assert_called_with(expected_cmd,
[all …]
Dssh.py18 import subprocess
51 process = subprocess.Popen(cmd, shell=True, stdin=None,
52 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
78 process = subprocess.Popen(cmd, shell=True, stdin=None,
79 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
111 process = subprocess.Popen(cmd, shell=True, stdin=None,
112 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
130 raise subprocess.CalledProcessError(process.returncode, cmd)
Dutils_test.py23 import subprocess
155 self.Patch(subprocess, "check_call")
158 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
166 self.Patch(subprocess, "check_call")
169 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
170 subprocess.check_call.assert_called_with( #pylint: disable=no-member
183 self.Patch(subprocess, "check_output")
187 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
188 subprocess.check_output.assert_called_with( #pylint: disable=no-member
373 call_side_effect = subprocess.CalledProcessError(123, "fake",
[all …]
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py17 import subprocess
29 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
39 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py22 import subprocess32 as subprocess namespace
25 import subprocess
27 from subprocess import DEVNULL
141 proc = subprocess.Popen(
144 stdout=subprocess.PIPE,
145 stderr=subprocess.PIPE,
153 except subprocess.TimeoutExpired:
197 proc = subprocess.Popen(
203 stderr=subprocess.STDOUT)
/tools/external_updater/
Dnotifier.py29 import subprocess
92 subprocess.run(['sendgmr', '--to=' + recipient,
94 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
129 except subprocess.CalledProcessError as err:
158 out = subprocess.run(['out/soong/host/linux-x86/bin/external_updater',
161 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
187 subprocess.run(params, cwd=_get_android_top())
Dgit_utils.py18 import subprocess
23 out = subprocess.PIPE if redirect else None
24 return subprocess.run(cmd, stdout=out, stderr=out,
124 except subprocess.CalledProcessError:
126 subprocess.run(['git', 'merge', '--abort'], cwd=proj_path)
/tools/acloud/setup/
Dsetup_common.py21 import subprocess
53 return subprocess.check_output(cmd, **kwargs)
68 stderr=subprocess.STDOUT))
69 except subprocess.CalledProcessError as cpe:
103 stderr=subprocess.STDOUT)
107 except subprocess.CalledProcessError as error:
/tools/tradefederation/core/atest/test_runners/
Drobolectric_test_runner_unittest.py20 import subprocess
70 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
71 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
85 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True)
86 robo_proc = subprocess.Popen("echo '%s' >> %s && sleep %s"
106 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
107 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
137 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
138 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
/tools/asuite/atest/test_runners/
Drobolectric_test_runner_unittest.py23 import subprocess
73 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
74 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
88 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True)
89 robo_proc = subprocess.Popen("echo '%s' >> %s && sleep %s"
109 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
110 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
140 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
141 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
/tools/test/connectivity/acts/tests/meta/
DActsUnitTest.py17 import subprocess
41 test_process = subprocess.Popen([sys.executable, test_script],
42 stdout=subprocess.PIPE,
43 stderr=subprocess.STDOUT)
48 except subprocess.TimeoutExpired:
/tools/dexter/dexter/
Ddexter_tests.py6 import subprocess
55 return subprocess.Popen(
58 stdin = subprocess.PIPE,
59 stdout = subprocess.PIPE,
60 stderr = subprocess.STDOUT).communicate(input = stdin_content)[0]
/tools/asuite/
Dasuite_run_unittests.py27 import subprocess
63 subprocess.check_call(shlex.split(cmd), cwd=path)
64 except subprocess.CalledProcessError as error:
85 preupload_files = subprocess.check_output(cmd, shell=True,
/tools/tradefederation/core/atest/
Datest_utils.py30 import subprocess
119 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
120 stderr=subprocess.STDOUT, env=env_vars)
153 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
182 subprocess.check_call(cmd, stderr=subprocess.STDOUT,
189 except subprocess.CalledProcessError as err:
352 _y, _x = subprocess.check_output(['stty', 'size']).decode().split()
357 except subprocess.CalledProcessError:
609 git_paths = subprocess.check_output(
615 modified_wo_commit = subprocess.check_output(
[all …]
Datest_integration_tests.py33 import subprocess
74 subprocess.check_output(run_command,
75 stderr=subprocess.PIPE,
78 except subprocess.CalledProcessError as e:
/tools/acloud/public/acloud_kernel/
Dkernel_swapper.py20 import subprocess
84 except subprocess.CalledProcessError as e:
145 retry_checker=lambda e: isinstance(e, subprocess.CalledProcessError),
147 functor=lambda cmd: subprocess.check_call(cmd, shell=True),
/tools/asuite/atest/
Datest_utils.py32 import subprocess
130 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
131 stderr=subprocess.STDOUT, env=env_vars)
164 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
193 subprocess.check_call(cmd, stderr=subprocess.STDOUT,
200 except subprocess.CalledProcessError as err:
607 git_paths = subprocess.check_output(
613 modified_wo_commit = subprocess.check_output(
620 commit_modified_files = subprocess.check_output(
625 except (OSError, subprocess.CalledProcessError) as err:
Datest_integration_tests.py33 import subprocess
74 subprocess.check_output(run_command,
75 stderr=subprocess.PIPE,
78 except subprocess.CalledProcessError as e:
/tools/asuite/atest/tools/
Datest_tools_unittest.py24 import subprocess
58 output = subprocess.check_output(locate_cmd1).decode()
61 self.assertEqual(subprocess.call(locate_cmd1), 1)
64 self.assertEqual(subprocess.call(locate_cmd2), 0)
/tools/tradefederation/core/atest/tools/
Datest_tools_unittest.py24 import subprocess
57 self.assertEqual(subprocess.check_output(locate_cmd1), "")
59 self.assertEqual(subprocess.call(locate_cmd1), 1)
62 self.assertEqual(subprocess.call(locate_cmd2), 0)
/tools/test/connectivity/acts/framework/
Dsetup.py18 import subprocess
72 result = subprocess.Popen('python3 %s' % test_path,
99 subprocess.check_call(install_args + ['--upgrade', 'pip'])
104 subprocess.check_call(install_args +
/tools/test/connectivity/acts/framework/acts/libs/proto/
Dproto_utils.py17 import subprocess
63 if subprocess.call(protoc_command, stderr=subprocess.STDOUT) != 0:
/tools/repohooks/tools/
Dpylint.py26 import subprocess
40 result = subprocess.run([pylint, '--version'], stdout=subprocess.PIPE,

1234