/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 | 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 | 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.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/asuite/atest-py2/ |
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 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/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/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 …]
|
/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/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/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/security/remote_provisioning/attestation_testing/ |
D | attestation_test_host.py | 3 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_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 56 return subprocess.Popen( 59 stdin = subprocess.PIPE, 60 stdout = subprocess.PIPE, 61 stderr = subprocess.STDOUT).communicate(input = stdin_content)[0]
|
/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/repohooks/rh/ |
D | utils.py | 21 import subprocess 53 class CompletedProcess(getattr(subprocess, 'CompletedProcess', object)): 83 class CalledProcessError(subprocess.CalledProcessError): 199 class _Popen(subprocess.Popen): 340 popen_stderr = subprocess.STDOUT 354 stdin = subprocess.PIPE 404 if popen_stderr and popen_stderr != subprocess.STDOUT:
|
/tools/test/openhst/ |
D | stress_test.py | 40 import subprocess 272 self.process = subprocess.Popen(self.command, stdout=subprocess.PIPE) 647 return subprocess.check_output( 654 files = subprocess.check_output( 657 except subprocess.CalledProcessError: 667 subprocess.check_output(["adb", "-s", self.serial_number, "pull", 670 subprocess.check_output([ 675 return subprocess.check_output(command) 830 subprocess.check_output(["adb", "devices"]).splitlines()): 883 subprocess.check_call(["sox", "-q", [all …]
|
/tools/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 28 import subprocess 258 out_put = subprocess.check_output(git_log_cmds).decode("utf-8") 259 except subprocess.CalledProcessError: 293 subprocess.check_output(git_chekout_cmds) 294 except subprocess.CalledProcessError: 631 subprocess.check_call(cmd, shell=True) 661 subprocess.check_call( 664 except subprocess.CalledProcessError:
|
/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/asuite/atest/tools/ |
D | atest_tools.py | 27 import subprocess 153 if subprocess.check_call(updatedb_cmd, env=full_env_vars) == 0: 208 return subprocess.check_output(find_cc_cmd, shell=True) 225 return subprocess.check_output(find_java_cmd, shell=True) 379 except subprocess.CalledProcessError as err: 410 proc = subprocess.Popen(acloud_cmd, shell=True)
|