Lines Matching refs:subprocess
32 import subprocess
70 abb = subprocess.run(['adb', 'abb'], capture_output=True)
71 cmd = subprocess.run(['adb', 'shell', 'cmd'], capture_output=True)
91 with self.assertRaises(subprocess.CalledProcessError):
137 serialno = subprocess.check_output(self.device.adb_cmd + ['get-serialno']).strip()
276 proc = subprocess.Popen(
278 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
279 stderr=subprocess.PIPE)
355 terminal = subprocess.Popen(
357 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
360 non_terminal = subprocess.Popen(
361 test_cmd, stdin=subprocess.PIPE,
362 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
440 sleep_proc = subprocess.Popen(
442 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
443 stderr=subprocess.STDOUT)
472 proc = subprocess.Popen(self.device.adb_cmd + ['shell', 'cat'],
473 stdin=subprocess.PIPE,
474 stdout=subprocess.PIPE,
475 stderr=subprocess.PIPE)
497 stdin=subprocess.PIPE,
498 stdout=subprocess.PIPE) as process:
520 ret = subprocess.call(['adb', 'shell', 'exit {}'.format(i)])
547 procs[i] = subprocess.Popen(
549 stdin=subprocess.PIPE,
550 stdout=subprocess.PIPE
610 except subprocess.CalledProcessError as e:
658 subprocess.CalledProcessError, self.device.tcpip, '')
660 subprocess.CalledProcessError, self.device.tcpip, 'foo')
915 except subprocess.CalledProcessError as e:
967 except subprocess.CalledProcessError as e:
1373 output = subprocess.check_output(self.device.adb_cmd + ['devices'])
1388 serialno = subprocess.check_output(self.device.adb_cmd + ['get-serialno']).strip()
1395 subproc = subprocess.Popen(self.device.adb_cmd + ['push', file_path, '/data/local/tmp'])
1398 subprocess.check_call(self.device.adb_cmd + ['kill-server'])
1418 serialno = subprocess.check_output(self.device.adb_cmd + ['get-serialno']).strip()
1425 subproc = subprocess.Popen(self.device.adb_cmd +
1429 subprocess.check_call(self.device.adb_cmd + ['kill-server'])
1555 output = subprocess.check_output(self.device.adb_cmd + ["raw", "framebuffer:"])
1760 serial = subprocess.check_output(['adb', 'get-serialno']).strip().decode("utf-8")
1765 … with subprocess.Popen(['adb', 'devices'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1777 …with subprocess.Popen(['adb', 'devices', '-l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as …
1789 …with subprocess.Popen(['adb', 'track-devices'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as …
1802 …with subprocess.Popen(['adb', 'track-devices', '-l'], stdin=subprocess.PIPE, stdout=subprocess.PIP…
1815 …with subprocess.Popen(['adb', 'track-devices', '--proto-text'], stdin=subprocess.PIPE, stdout=subp…
1828 …with subprocess.Popen(['adb', 'track-devices', '--proto-binary'], stdin=subprocess.PIPE, stdout=su…
1850 serial = subprocess.check_output(['adb', 'get-serialno']).strip().decode("utf-8")
1855 subprocess.check_output(['adb', 'install', '-t', 'adb1.apk']).strip().decode("utf-8")
1856 subprocess.check_output(['adb', 'install', '-t', 'adb2.apk']).strip().decode("utf-8")
1857 …subprocess.check_output(['adb', 'shell', 'am', 'start', '-W', 'adb.test.app1/.MainActivity']).stri…
1858 …subprocess.check_output(['adb', 'shell', 'am', 'start', '-W', 'adb.test.app2/.MainActivity']).stri…
1859 …subprocess.check_output(['adb', 'shell', 'am', 'start', '-W', 'adb.test.app1/.OwnProcessActivity']…
1860 …with subprocess.Popen(['adb', 'track-app', '--proto-binary'], stdin=subprocess.PIPE, stdout=subpro…