/tools/acloud/internal/lib/ |
D | adb_tools_test.py | 16 import subprocess 49 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) 53 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE) 57 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 64 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 77 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) 87 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE) 97 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 103 self.Patch(subprocess, "check_output", 112 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) [all …]
|
D | ssh_test.py | 19 import subprocess 55 self.Patch(subprocess, "Popen", 56 side_effect=subprocess.CalledProcessError( 58 self.assertRaises(subprocess.CalledProcessError, 86 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 91 subprocess.Popen.assert_called_with(expected_cmd, 100 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 110 subprocess.Popen.assert_called_with(expected_cmd, 119 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 124 subprocess.Popen.assert_called_with(expected_cmd, [all …]
|
D | ssh.py | 18 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, 131 raise subprocess.CalledProcessError(process.returncode, cmd) 154 exception_types=(errors.DeviceConnectionError, subprocess.CalledProcessError), 260 process = subprocess.Popen(ssh_cmd, shell=True, stdin=None, [all …]
|
D | adb_tools.py | 17 import subprocess 212 subprocess.check_call(adb_disconnect_args) 220 except subprocess.CalledProcessError: 254 subprocess.check_call(adb_connect_args) 255 except subprocess.CalledProcessError: 269 subprocess.check_call(adb_unlock_args.split()) 270 except subprocess.CalledProcessError: 288 proc = subprocess.Popen(adb_cmd, stdin=subprocess.PIPE, 289 stdout=subprocess.PIPE, 290 stderr=subprocess.PIPE)
|
D | utils_test.py | 24 import subprocess 164 self.Patch(subprocess, "check_call") 167 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member 175 self.Patch(subprocess, "check_call") 178 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member 179 subprocess.check_call.assert_called_with( #pylint: disable=no-member 192 self.Patch(subprocess, "check_output") 196 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member 197 subprocess.check_output.assert_called_with( #pylint: disable=no-member 377 call_side_effect = subprocess.CalledProcessError(123, "fake", [all …]
|
D | utils.py | 33 import subprocess 372 subprocess.check_call(cmd, stdout=sys.stderr, stderr=sys.stdout) 373 except subprocess.CalledProcessError as e: 808 subprocess.check_call(command, stderr=dev_null, stdout=dev_null) 819 subprocess.check_call(_RELEASE_PORT_CMD % port, 821 except subprocess.CalledProcessError: 855 except subprocess.CalledProcessError as e: 901 except subprocess.CalledProcessError as e: 909 except subprocess.CalledProcessError: 1037 except subprocess.CalledProcessError as cpe: [all …]
|
D | ota_tools.py | 18 import subprocess 144 popen_args["stdin"] = subprocess.PIPE 145 popen_args["stdout"] = subprocess.PIPE 146 popen_args["stderr"] = subprocess.PIPE 155 proc = subprocess.Popen(command, **popen_args)
|
/tools/treble/build/sandbox/ |
D | rbe_action.py | 20 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)
|
D | rbe.py | 19 import subprocess 120 def setup(env, build_log=subprocess.DEVNULL): 169 if build_log != subprocess.DEVNULL: 175 subprocess.call( 176 proxy_kill_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) 177 rbe_proxy = subprocess.Popen( 185 if build_log != subprocess.DEVNULL:
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 21 import subprocess32 as subprocess namespace 23 import subprocess 135 proc = subprocess.Popen(command, 137 stdout=subprocess.PIPE, 138 stderr=subprocess.PIPE, 146 except subprocess.TimeoutExpired: 189 proc = subprocess.Popen(command, 193 stdout=subprocess.PIPE, 194 stderr=subprocess.STDOUT)
|
D | process.py | 21 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/asuite/atest/test_runners/ |
D | robolectric_test_runner_unittest.py | 23 import subprocess 74 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 75 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 89 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True) 90 robo_proc = subprocess.Popen("echo '%s' >> %s && sleep %s" 113 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 114 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 144 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 145 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
|
/tools/asuite/atest-py2/test_runners/ |
D | robolectric_test_runner_unittest.py | 20 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/external_updater/ |
D | notifier.py | 29 import subprocess 102 subprocess.run(['sendgmr', 107 stdout=subprocess.PIPE, 108 stderr=subprocess.PIPE, 153 except subprocess.CalledProcessError as err: 183 out = subprocess.run([ 187 stdout=subprocess.PIPE, 188 stderr=subprocess.PIPE, 216 subprocess.run(params, cwd=_get_android_top())
|
/tools/test/connectivity/acts_tests/tests/meta/ |
D | ActsUnitTest.py | 17 import subprocess 43 test_process = subprocess.Popen([sys.executable, test_script], 44 stdout=subprocess.PIPE, 45 stderr=subprocess.STDOUT) 50 except subprocess.TimeoutExpired:
|
/tools/acloud/setup/ |
D | setup_common.py | 21 import subprocess 69 stderr=subprocess.STDOUT)) 70 except subprocess.CalledProcessError as cpe: 104 stderr=subprocess.STDOUT) 108 except subprocess.CalledProcessError as error:
|
/tools/asuite/atest/ |
D | atest_utils.py | 35 import subprocess 190 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, 191 stderr=subprocess.STDOUT, env=env_vars) 226 raise subprocess.CalledProcessError(proc.returncode, cmd, output) 288 subprocess.check_call(cmd, stderr=subprocess.STDOUT, 295 except subprocess.CalledProcessError as err: 798 git_paths = subprocess.check_output( 804 modified_wo_commit = subprocess.check_output( 811 commit_modified_files = subprocess.check_output( 816 except (OSError, subprocess.CalledProcessError) as err: [all …]
|
D | atest_integration_tests.py | 33 import subprocess 74 subprocess.check_output(run_command, 75 stderr=subprocess.PIPE, 78 except subprocess.CalledProcessError as e:
|
/tools/asuite/ |
D | asuite_run_unittests.py | 27 import subprocess 65 subprocess.check_call(shlex.split(cmd), cwd=path) 66 except subprocess.CalledProcessError as error: 87 preupload_files = subprocess.check_output(cmd, shell=True,
|
/tools/acloud/public/acloud_kernel/ |
D | kernel_swapper.py | 20 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/test/connectivity/acts/framework/tests/ |
D | test_suite.py | 18 import subprocess 62 test_result = subprocess.Popen([sys.executable, test_files[index]], 64 stderr=subprocess.STDOUT) 78 except subprocess.TimeoutExpired:
|
/tools/asuite/atest-py2/ |
D | atest_integration_tests.py | 33 import subprocess 74 subprocess.check_output(run_command, 75 stderr=subprocess.PIPE, 78 except subprocess.CalledProcessError as e:
|
/tools/asuite/atest-py2/tools/ |
D | atest_tools_unittest.py | 24 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_tests/ |
D | setup.py | 19 import subprocess 58 subprocess.check_call(command, cwd=acts_framework_dir) 108 subprocess.check_call(install_args + ['--upgrade', 'pip']) 113 subprocess.check_call(install_args +
|
/tools/repohooks/rh/ |
D | utils.py | 21 import subprocess 53 class CompletedProcess(getattr(subprocess, 'CompletedProcess', object)): 83 class CalledProcessError(subprocess.CalledProcessError): 195 class _Popen(subprocess.Popen): 331 popen_stderr = subprocess.STDOUT 345 stdin = subprocess.PIPE 401 if popen_stderr and popen_stderr != subprocess.STDOUT:
|