/tools/acloud/internal/lib/ |
D | adb_tools_test.py | 16 import subprocess 41 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) 45 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE) 49 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 56 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 69 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) 79 self.Patch(subprocess, "check_output", return_value=self.DEVICE_OFFLINE) 89 self.Patch(subprocess, "check_output", return_value=self.DEVICE_NONE) 97 self.Patch(subprocess, "check_output", return_value=self.DEVICE_ALIVE) 98 self.Patch(subprocess, "check_call", return_value=True) [all …]
|
D | ssh_test.py | 19 import subprocess 54 self.Patch(subprocess, "Popen", 55 side_effect=subprocess.CalledProcessError( 57 self.assertRaises(subprocess.CalledProcessError, 85 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 90 subprocess.Popen.assert_called_with(expected_cmd, 98 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 108 subprocess.Popen.assert_called_with(expected_cmd, 116 self.Patch(subprocess, "Popen", return_value=self.created_subprocess) 121 subprocess.Popen.assert_called_with(expected_cmd, [all …]
|
D | utils_test.py | 23 import subprocess 156 self.Patch(subprocess, "check_call") 159 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member 167 self.Patch(subprocess, "check_call") 170 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member 171 subprocess.check_call.assert_called_with( #pylint: disable=no-member 184 self.Patch(subprocess, "check_output") 188 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member 189 subprocess.check_output.assert_called_with( #pylint: disable=no-member 374 call_side_effect = subprocess.CalledProcessError(123, "fake", [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) 130 raise subprocess.CalledProcessError(process.returncode, cmd) 153 exception_types=(errors.DeviceConnectionError, subprocess.CalledProcessError), 259 process = subprocess.Popen(ssh_cmd, shell=True, stdin=None, [all …]
|
D | utils.py | 32 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: 1036 except subprocess.CalledProcessError as cpe: [all …]
|
D | adb_tools.py | 17 import subprocess 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, 270 stderr=subprocess.PIPE)
|
/tools/asuite/atest/ |
D | atest_utils.py | 34 import subprocess 138 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, 139 stderr=subprocess.STDOUT, env=env_vars) 172 raise subprocess.CalledProcessError(proc.returncode, cmd, output) 201 subprocess.check_call(cmd, stderr=subprocess.STDOUT, 208 except subprocess.CalledProcessError as err: 620 git_paths = subprocess.check_output( 626 modified_wo_commit = subprocess.check_output( 633 commit_modified_files = subprocess.check_output( 638 except (OSError, subprocess.CalledProcessError) as err: [all …]
|
/tools/tradefederation/core/atest/ |
D | atest_utils.py | 30 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 …]
|
/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 63 subprocess.CREATE_NEW_PROCESS_GROUP) 160 subprocess.check_call('taskkill /F /T /PID %s' % self._process.pid) 183 except subprocess.TimeoutExpired: 227 return subprocess.Popen(command, **kwargs) 241 stdout=subprocess.PIPE, 242 stderr=subprocess.STDOUT,
|
/tools/external_updater/ |
D | notifier.py | 29 import subprocess 91 subprocess.run(['sendgmr', '--to=' + recipient, '--subject=' + proj], 93 stdout=subprocess.PIPE, 94 stderr=subprocess.PIPE, 130 except subprocess.CalledProcessError as err: 159 out = subprocess.run([ 163 stdout=subprocess.PIPE, 164 stderr=subprocess.PIPE, 191 subprocess.run(params, cwd=_get_android_top())
|
/tools/asuite/atest/test_runners/ |
D | robolectric_test_runner_unittest.py | 23 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/tradefederation/core/atest/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/test/openhst/ |
D | stress_test.py | 40 import subprocess 271 self.process = subprocess.Popen(self.command, stdout=subprocess.PIPE) 638 return subprocess.check_output( 645 files = subprocess.check_output( 648 except subprocess.CalledProcessError: 658 subprocess.check_output(["adb", "-s", self.serial_number, "pull", 661 subprocess.check_output([ 666 return subprocess.check_output(command) 821 subprocess.check_output(["adb", "devices"]).splitlines()): 874 subprocess.check_call(["sox", "-q", [all …]
|
/tools/treble/build/sandbox/ |
D | rbe_action.py | 20 import subprocess 37 cleanup = rbe.setup([], sys.stdout if args.print else subprocess.DEVNULL) 53 subprocess.check_call( 54 bootstrap_cmd, env=env, cwd=src_root, stdout=subprocess.DEVNULL) 68 subprocess.check_call(rewrapper_cmd, env=env, cwd=src_root) 74 subprocess.call( 76 stdout=subprocess.DEVNULL, 77 stderr=subprocess.DEVNULL)
|
D | rbe.py | 19 import subprocess 118 def setup(env, build_log=subprocess.DEVNULL): 157 if build_log != subprocess.DEVNULL: 163 subprocess.call( 164 proxy_kill_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) 165 rbe_proxy = subprocess.Popen( 173 if build_log != subprocess.DEVNULL:
|
/tools/tradefederation/core/python-lib/tradefed_py/ |
D | adb_handler.py | 17 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/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 27 import subprocess 242 out_put = subprocess.check_output(git_log_cmds).decode("utf-8") 243 except subprocess.CalledProcessError: 277 subprocess.check_output(git_chekout_cmds) 278 except subprocess.CalledProcessError: 613 subprocess.check_call(cmd, shell=True) 643 subprocess.check_call( 646 except subprocess.CalledProcessError:
|
/tools/repohooks/rh/ |
D | utils.py | 24 import subprocess 57 class CompletedProcess(getattr(subprocess, 'CompletedProcess', object)): 87 class CalledProcessError(subprocess.CalledProcessError): 203 class _Popen(subprocess.Popen): 344 popen_stderr = subprocess.STDOUT 358 stdin = subprocess.PIPE 408 if popen_stderr and popen_stderr != subprocess.STDOUT:
|
/tools/asuite/atest/tools/ |
D | atest_tools.py | 27 import subprocess 151 subprocess.check_call(updatedb_cmd, env=full_env_vars) 205 return subprocess.check_output(find_cc_cmd, shell=True) 222 return subprocess.check_output(find_java_cmd, shell=True) 370 except subprocess.CalledProcessError as err: 398 proc = subprocess.Popen(acloud_cmd, shell=True)
|
/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/dexter/dexter/ |
D | dexter_tests.py | 6 import subprocess 55 return subprocess.Popen( 58 stdin = subprocess.PIPE, 59 stdout = subprocess.PIPE, 60 stderr = subprocess.STDOUT).communicate(input = stdin_content)[0]
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 32 import subprocess 398 proc = subprocess.Popen(cmd, 399 stdout=subprocess.PIPE, 400 stderr=subprocess.PIPE, 460 proc = subprocess.Popen(cmd, 461 stdout=subprocess.PIPE, 462 stderr=subprocess.PIPE,
|
/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/acloud/list/ |
D | instance.py | 34 import subprocess 399 process = subprocess.Popen(cvd_status_cmd, 401 stdout=subprocess.PIPE, 402 stderr=subprocess.STDOUT, 411 except subprocess.CalledProcessError as cpe: 438 subprocess.check_call(
|