Home
last modified time | relevance | path

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

12345

/tools/repohooks/rh/
Dutils.py62 def __init__(self, args=None, returncode=None, stdout=None, stderr=None): argument
65 self.stdout = stdout
70 args=args, returncode=returncode, stdout=stdout, stderr=stderr)
96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
102 super(CalledProcessError, self).__init__(returncode, cmd, stdout)
107 self.stdout = stdout
118 def stringify(self, stdout=True, stderr=True): argument
133 if stdout and self.stdout:
134 items.append(self.stdout)
348 sys.stdout.flush()
[all …]
Dgit.py35 branch = result.stdout.strip()
40 return result.stdout.strip()
51 current_branch = result.stdout.strip().replace('refs/heads/', '')
58 full_upstream = result.stdout.strip()
64 remote = result.stdout.strip()
75 return result.stdout.strip()
89 return rh.utils.run(cmd, capture_output=True).stdout
103 return rh.utils.run(cmd, capture_output=True).stdout
145 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout
175 return rh.utils.run(cmd, capture_output=True).stdout.split()
[all …]
Dutils_unittest.py137 self.assertIsNone(ret.stdout)
143 self.assertEqual('hi\n', ret.stdout)
149 self.assertIsNone(ret.stdout)
155 self.assertEqual(u'ß', ret.stdout)
161 self.assertEqual(u'ß', ret.stdout)
/tools/metalava/src/main/java/com/android/tools/metalava/
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.kt130 options.stdout.println() in <lambda>()
131 options.stdout.println( in <lambda>()
189 options.stdout.println() in <lambda>()
190 options.stdout.println( in <lambda>()
194 … options.stdout.println("API nullness coverage is ${percent(annotatedCount, referenceCount)}%") in <lambda>()
195 options.stdout.println() in <lambda>()
235 printer: PrintWriter = options.stdout in <lambda>()
278 options.stdout in <lambda>()
309 options.stdout in <lambda>()
394 … options.stdout.println("Could not read jar file entry ${entry.name} from $file: $e") in <lambda>()
[all …]
DDriver.kt95 stdout: PrintWriter = PrintWriter(OutputStreamWriter(System.out)), in run()
107 maybeDumpArgv(stdout, originalArgs, modifiedArgs) in run()
111 options = Options(modifiedArgs, stdout, stderr) in run()
134 stdout.flush() in run()
142 if (e.stdout.isNotBlank()) { in run()
143 stdout.println("\n${prefix}${e.stdout}") in run()
153 baseline.dumpStats(options.stdout) in run()
157 stdout.println("$PROGRAM_NAME wrote updated baseline to ${baseline.updateFile}") in run()
170 stdout.flush() in run()
184 options.stdout.flush() in exit()
[all …]
/tools/asuite/atest-py2/
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)
Datest_unittest.py117 sys.stdout = capture_output
123 sys.stdout = sys.__stdout__
138 sys.stdout = capture_output
143 sys.stdout = sys.__stdout__
190 sys.stdout = capture_output
194 sys.stdout = sys.__stdout__
/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_adb_test.py25 def __init__(self, exit_status=0, stderr='', stdout=''): argument
28 self.stdout = stdout
55 mock_job = MockJob(exit_status=0, stderr='DEADBEEF', stdout='FEEDACAB')
62 mock_job = MockJob(exit_status=0, stderr='DEADBEEF', stdout='')
69 mock_job = MockJob(exit_status=1, stderr='', stdout='foo')
87 stdout='')
Dacts_utils_test.py465 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
467 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
476 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
478 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
487 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
489 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
499 job.Result(stdout=bytes(MOCK_IP_ADDRESSES, 'utf-8'),
501 job.Result(stdout=bytes(MOCK_IFCONFIG_OUTPUT, 'utf-8'),
/tools/asuite/atest/
Datest_utils_unittest.py190 sys.stdout = capture_output
193 sys.stdout = sys.__stdout__
200 sys.stdout = capture_output
203 sys.stdout = sys.__stdout__
211 sys.stdout = capture_output
214 sys.stdout = sys.__stdout__
222 sys.stdout = capture_output
225 sys.stdout = sys.__stdout__
232 sys.stdout = capture_output
235 sys.stdout = sys.__stdout__
[all …]
/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/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,
118 stdout, _ = process.communicate()
119 if stdout:
121 print(stdout.strip(), file=sys.stderr)
124 logger.debug(stdout.strip())
261 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
263 stdout, _ = process.communicate()
264 return stdout
Dssh_test.py45 self.created_subprocess.stdout = mock.MagicMock()
46 self.created_subprocess.stdout.readline = mock.MagicMock(return_value=b"")
95 stdout=-1,
114 stdout=-1,
128 stdout=-1,
147 stdout=-1,
161 stdout=-1,
180 stdout=-1,
/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
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt463 val stdout = StringWriter() in Test invalid arguments() constant
467 stdout = PrintWriter(stdout), in Test invalid arguments()
470 assertEquals(BANNER + "\n\n", stdout.toString()) in Test invalid arguments()
486 val stdout = StringWriter() in Test help() constant
490 stdout = PrintWriter(stdout), in Test help()
503 """.trimIndent(), stdout.toString() in Test help()
/tools/treble/build/sandbox/
Dnsjail.py69 stdout=None, argument
138 stdout=stdout,
319 stdout=None, argument
350 print('NsJail command:', file=stdout)
351 print(' '.join(nsjail_command), file=stdout)
354 subprocess.check_call(nsjail_command, stdout=stdout, stderr=stderr)
/tools/test/connectivity/acts/framework/acts/
Dutils.py401 stdout=subprocess.PIPE,
463 stdout=subprocess.PIPE,
871 if adb_error.stdout == "ADB_CMD_OUTPUT:0":
879 elif adb_error.stdout == "ADB_CMD_OUTPUT:255":
888 if adb_error.stdout == "ADB_CMD_OUTPUT:0":
1020 pid = job.run('pgrep -f %s' % command_regex).stdout
1023 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1029 pid = job.run('pidof %s' % process, ignore_status=True).stdout
1032 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1417 'print $2" "$4}\'').stdout
[all …]
/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.py107 stdout=subprocess.PIPE,
156 stderr: {}""".format(proj, latest_ver, err.stdout, err.stderr)
187 stdout=subprocess.PIPE,
190 stdout = out.stdout.decode('utf-8')
201 """.format(stdout, stderr)
/tools/test/connectivity/acts_tests/tests/meta/
DActsUnitTest.py44 stdout=subprocess.PIPE,
49 stdout, _ = test_process.communicate(timeout=TIMEOUT)
55 stdout, _ = test_process.communicate()
64 stdout.decode('utf-8', errors='replace')))
70 stdout.decode('utf-8', errors='replace')))
/tools/repohooks/tools/
Dclang-format.py89 stdout = result.stdout
90 if stdout.rstrip('\n') == 'no modified files to format':
96 for line in stdout.splitlines():
102 result = rh.utils.run(['git', 'apply'], input=stdout, check=False)
/tools/test/connectivity/acts/framework/acts/controllers/adb_lib/
Derror.py23 def __init__(self, cmd, stdout, stderr, ret_code): argument
26 self.stdout = stdout
32 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)

12345