Home
last modified time | relevance | path

Searched refs:stdout (Results 1 – 25 of 129) sorted by relevance

123456

/tools/repohooks/rh/
Dutils.py66 def __init__(self, args=None, returncode=None, stdout=None, stderr=None): argument
69 self.stdout = stdout
74 args=args, returncode=returncode, stdout=stdout, stderr=stderr)
100 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
106 super(CalledProcessError, self).__init__(returncode, cmd, stdout)
111 self.stdout = stdout
122 def stringify(self, stdout=True, stderr=True): argument
137 if stdout and self.stdout:
138 items.append(self.stdout)
352 sys.stdout.flush()
[all …]
Dgit.py38 branch = result.stdout.strip()
43 return result.stdout.strip()
54 current_branch = result.stdout.strip().replace('refs/heads/', '')
61 full_upstream = result.stdout.strip()
67 remote = result.stdout.strip()
78 return result.stdout.strip()
92 return rh.utils.run(cmd, capture_output=True).stdout
106 return rh.utils.run(cmd, capture_output=True).stdout
148 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout
178 return rh.utils.run(cmd, capture_output=True).stdout.split()
[all …]
/tools/tradefederation/core/atest/
Datest_utils_unittest.py168 sys.stdout = capture_output
171 sys.stdout = sys.__stdout__
178 sys.stdout = capture_output
181 sys.stdout = sys.__stdout__
189 sys.stdout = capture_output
192 sys.stdout = sys.__stdout__
200 sys.stdout = capture_output
203 sys.stdout = sys.__stdout__
210 sys.stdout = capture_output
213 sys.stdout = sys.__stdout__
[all …]
Datest_utils.py119 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
121 sys.stdout.write('\n')
126 line = proc.stdout.readline()
137 sys.stdout.write('\r%s\r' % white_space)
138 sys.stdout.write('%s' % line.strip())
139 sys.stdout.flush()
141 sys.stdout.write(_BASH_RESET_CODE)
142 sys.stdout.flush()
311 has_colors = _has_colors(sys.stdout)
/tools/asuite/atest/
Datest_utils_unittest.py173 sys.stdout = capture_output
176 sys.stdout = sys.__stdout__
183 sys.stdout = capture_output
186 sys.stdout = sys.__stdout__
194 sys.stdout = capture_output
197 sys.stdout = sys.__stdout__
205 sys.stdout = capture_output
208 sys.stdout = sys.__stdout__
215 sys.stdout = capture_output
218 sys.stdout = sys.__stdout__
[all …]
Datest_utils.py138 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
140 sys.stdout.write('\n')
145 line = proc.stdout.readline().decode('utf-8')
156 sys.stdout.write('\r%s\r' % white_space)
157 sys.stdout.write('%s' % line.strip())
158 sys.stdout.flush()
160 sys.stdout.write(_BASH_RESET_CODE)
161 sys.stdout.flush()
323 has_colors = _has_colors(sys.stdout)
727 stdout=subprocess.DEVNULL,
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt99 stdout: PrintWriter = PrintWriter(OutputStreamWriter(System.out)), in run()
111 maybeDumpArgv(stdout, originalArgs, modifiedArgs) in run()
115 options = Options(modifiedArgs, stdout, stderr) in run()
138 stdout.flush() in run()
146 if (e.stdout.isNotBlank()) { in run()
147 stdout.println("\n${prefix}${e.stdout}") in run()
157 baseline.dumpStats(options.stdout) in run()
161 stdout.println("$PROGRAM_NAME wrote updated baseline to ${baseline.updateFile}") in run()
174 stdout.flush() in run()
188 options.stdout.flush() in exit()
[all …]
DProgress.kt31 options.stdout.println() in progress()
36 options.stdout.print(now) in progress()
37 options.stdout.print(" CPU: ") in progress()
38 options.stdout.println(getCpuStats()) in progress()
40 options.stdout.print(now) in progress()
41 options.stdout.print(" MEM: ") in progress()
42 options.stdout.println(getMemoryStats()) in progress()
46 options.stdout.print(now) in progress()
47 options.stdout.print(" ") in progress()
48 options.stdout.print(message) in progress()
[all …]
DAnnotationStatistics.kt131 options.stdout.println() in <lambda>()
132 options.stdout.println( in <lambda>()
190 options.stdout.println() in <lambda>()
191 options.stdout.println( in <lambda>()
195 … options.stdout.println("API nullness coverage is ${percent(annotatedCount, referenceCount)}%") in <lambda>()
196 options.stdout.println() in <lambda>()
236 printer: PrintWriter = options.stdout in <lambda>()
279 options.stdout in <lambda>()
310 options.stdout in <lambda>()
395 … options.stdout.println("Could not read jar file entry ${entry.name} from $file: $e") in <lambda>()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilTest.java86 OutputStream stdout, OutputStream stderr, String... command) { in createRunnableResult() argument
87 RunnableResult real = super.createRunnableResult(stdout, stderr, command); in createRunnableResult()
333 File stdout = null; in testRuntimedCmd_withFileOutputStream() local
338 stdout = FileUtil.createTempFile("stdout_subprocess_", ".txt"); in testRuntimedCmd_withFileOutputStream()
339 stdoutStream = new FileOutputStream(stdout); in testRuntimedCmd_withFileOutputStream()
354 assertTrue(stdout.exists()); in testRuntimedCmd_withFileOutputStream()
357 assertEquals("TEST STDOUT\n", FileUtil.readStringFromFile(stdout)); in testRuntimedCmd_withFileOutputStream()
362 FileUtil.deleteFile(stdout); in testRuntimedCmd_withFileOutputStream()
388 File stdout = null; in testRuntimedCmd_notWritable() local
393 stdout = FileUtil.createTempFile("stdout_subprocess_", ".txt"); in testRuntimedCmd_notWritable()
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_job_test.py37 stdout=None, argument
42 self._stdout = bytes(stdout,
43 'utf-8') if stdout is not None else bytes()
64 return_value=FakePopen(stdout='TEST\n'))
68 self.assertTrue(result.stdout.startswith('TEST'))
76 self.assertEqual(len(result.stdout), 0)
78 self.assertFalse(result.stdout)
104 return_value=FakePopen(stdout='TEST\n'))
108 self.assertTrue(result.stdout.startswith('TEST'))
112 return_value=FakePopen(stdout='TEST\n'))
Dacts_utils_test.py461 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
463 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
472 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
474 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
483 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
485 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
495 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
497 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
Dacts_adb_test.py24 def __init__(self, exit_status=0, stderr='', stdout=''): argument
27 self.stdout = stdout
60 mock_job = MockJob(exit_status=0, stderr='', stdout='FEEDACAB')
66 mock_job = MockJob(exit_status=0, stderr='', stdout='')
76 stdout='')
/tools/test/connectivity/acts/framework/acts/
Dutils.py399 stdout=subprocess.PIPE,
461 stdout=subprocess.PIPE,
870 if adb_error.stdout == "ADB_CMD_OUTPUT:0":
878 elif adb_error.stdout == "ADB_CMD_OUTPUT:255":
887 if adb_error.stdout == "ADB_CMD_OUTPUT:0":
1022 pid = job.run('pgrep -f %s' % command_regex).stdout
1025 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1031 pid = job.run('pidof %s' % process, ignore_status=True).stdout
1034 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1421 'print $2" "$4}\'').stdout
[all …]
/tools/acloud/internal/lib/
Dssh.py52 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
79 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
112 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
117 stdout, _ = process.communicate()
118 if stdout:
120 print(stdout.strip(), file=sys.stderr)
123 logger.debug(stdout.strip())
260 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
261 stdout, _ = process.communicate()
262 return stdout.decode()
Dssh_test.py44 self.created_subprocess.stdout = mock.MagicMock()
45 self.created_subprocess.stdout.readline = mock.MagicMock(return_value=b"")
94 stdout=-1)
112 stdout=-1)
125 stdout=-1)
143 stdout=-1)
156 stdout=-1)
174 stdout=-1)
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dap_get_interface.py48 interfaces_all = output.stdout.split('\n')
59 interfaces_virtual = output.stdout.split('\n')
86 lines = output.stdout.split('\n')
110 if 'Channel 06' in output.stdout and 'Channel 36' not in output.stdout:
112 elif 'Channel 36' in output.stdout and 'Channel 06' not in output.stdout:
143 interfaces_all = output.stdout.split('\n')
164 if 'RUNNING' in output.stdout:
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py29 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
39 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
49 def __init__(self, cmd, stdout, stderr, ret_code): argument
51 self.stdout = stdout
57 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt450 val stdout = StringWriter() in Test invalid arguments() constant
454 stdout = PrintWriter(stdout), in Test invalid arguments()
457 assertEquals(BANNER + "\n\n", stdout.toString()) in Test invalid arguments()
473 val stdout = StringWriter() in Test help() constant
477 stdout = PrintWriter(stdout), in Test help()
490 """.trimIndent(), stdout.toString() in Test help()
/tools/treble/build/sandbox/
Dnsjail.py69 stdout=None, argument
135 stdout=stdout,
309 stdout=None, argument
340 print('NsJail command:', file=stdout)
341 print(' '.join(nsjail_command), file=stdout)
344 subprocess.check_call(nsjail_command, stdout=stdout, stderr=stderr)
/tools/test/connectivity/acts/framework/acts/controllers/
Dfastboot.py26 def __init__(self, cmd, stdout, stderr, ret_code): argument
29 self.stdout = stdout
35 " stderr: %s") % (self.cmd, self.ret_code, self.stdout,
68 ret, out, err = result.exit_status, result.stdout, result.stderr
77 cmd=command, stdout=out, stderr=err, ret_code=ret)
80 return job.run(' '.join((self.fastboot_str, ) + args), **kwargs).stdout
Daccess_point.py241 hostapd_config.bssid = interface_mac_orig.stdout[:-1] + '0'
244 hostapd_config.bssid = interface_mac_orig.stdout[:-1] + '8'
273 interface_mac_orig.stdout[:-1] + hex(last_octet)[-1:])
435 if iw_output.stdout == ssid:
439 return iw_output.stdout
520 self.scapy_install_path = self.ssh.run('mktemp -d').stdout.rstrip()
572 PROC_NET_SNMP6).stdout
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py2248 stdout = ad.adb.shell('cmd wifi send-link-probe')
2249 asserts.assert_false('Error' in stdout or 'Exception' in stdout,
2250 'Exception while sending link probe: ' + stdout)
2255 if 'succeeded' in stdout:
2258 (int(token) for token in stdout.split() if token.isdigit()), None)
2259 elif 'failed with reason' in stdout:
2261 (int(token) for token in stdout.split() if token.isdigit()), None)
2263 asserts.fail('Unexpected link probe result: ' + stdout)
2266 is_success=is_success, stdout=stdout,
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py52 def stdout(self): member in Result
71 stdout=bytes(), argument
90 self._raw_stdout = stdout
137 stdout=subprocess.PIPE,
152 stdout=out,
193 stdout=subprocess.PIPE,
/tools/external_updater/
Dnotifier.py93 stdout=subprocess.PIPE,
133 stderr: {}""".format(proj, latest_ver, err.stdout, err.stderr)
163 stdout=subprocess.PIPE,
166 stdout = out.stdout.decode('utf-8')
177 """.format(stdout, stderr)

123456