/tools/acloud/internal/lib/ |
D | adb_tools_test.py | 16 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 …]
|
D | adb_tools.py | 17 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 …]
|
D | ssh_test.py | 19 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 …]
|
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)
|
D | utils_test.py | 23 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/ |
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/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 22 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/ |
D | notifier.py | 29 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())
|
D | git_utils.py | 18 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/ |
D | setup_common.py | 21 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/ |
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/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/test/connectivity/acts/tests/meta/ |
D | ActsUnitTest.py | 17 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/ |
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/asuite/ |
D | asuite_run_unittests.py | 27 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/ |
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 …]
|
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/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/asuite/atest/ |
D | atest_utils.py | 32 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:
|
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/tools/ |
D | atest_tools_unittest.py | 24 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/ |
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/framework/ |
D | setup.py | 18 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/ |
D | proto_utils.py | 17 import subprocess 63 if subprocess.call(protoc_command, stderr=subprocess.STDOUT) != 0:
|
/tools/repohooks/tools/ |
D | pylint.py | 26 import subprocess 40 result = subprocess.run([pylint, '--version'], stdout=subprocess.PIPE,
|