Home
last modified time | relevance | path

Searched refs:stderr (Results 1 – 25 of 91) sorted by relevance

1234

/tools/repohooks/rh/
Dutils.py62 def __init__(self, args=None, returncode=None, stdout=None, stderr=None): argument
66 self.stderr = stderr
70 args=args, returncode=returncode, stdout=stdout, stderr=stderr)
96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
109 self.stderr = stderr
118 def stringify(self, stdout=True, stderr=True): argument
131 if stderr and self.stderr:
132 items.append(self.stderr)
184 file=sys.stderr)
349 sys.stderr.flush()
[all …]
Dutils_unittest.py138 self.assertIsNone(ret.stderr)
144 self.assertIsNone(ret.stderr)
150 self.assertEqual('hi\n', ret.stderr)
156 self.assertIsNone(ret.stderr)
162 self.assertIsNone(ret.stderr)
Dterminal.py102 self._enabled = is_tty(sys.stderr)
128 if is_tty(sys.stderr):
135 sys.stderr.write(output)
136 sys.stderr.flush()
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py25 def __init__(self, exit_status=0, stderr='', stdout=''): argument
27 self.stderr = stderr
40 mock_job = MockJob(exit_status=1, stderr='error: device not found')
48 exit_status=1, stderr='error: device \'DEADBEEF\' not found')
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')
76 mock_job = MockJob(exit_status=1, stderr='error not related to adb')
85 stderr='error: cannot bind listener: '
Dtest_suite.py64 stderr=subprocess.STDOUT)
74 file=sys.stderr)
76 print(out_file.read(), file=sys.stderr)
81 file=sys.stderr)
83 print(out_file.read(), file=sys.stderr)
87 print('The following tests failed:', file=sys.stderr)
89 print(' ', failure, file=sys.stderr)
Dacts_job_test.py38 stderr=None, argument
44 self._stderr = bytes(stderr,
45 'utf-8') if stderr is not None else bytes()
72 return_value=FakePopen(stderr='TEST\n'))
77 self.assertTrue(result.stderr.startswith('TEST'))
/tools/repohooks/
Dpre-upload.py30 print('repohooks: error: Python-3.6+ is required', file=sys.stderr)
140 print(warning, file=sys.stderr)
151 print(error, file=sys.stderr)
245 file=sys.stderr)
248 'attempting to upload again.\n', file=sys.stderr)
361 print('%s cannot be found.' % project_name, file=sys.stderr)
362 print('Please specify a valid project.', file=sys.stderr)
366 file=sys.stderr)
368 file=sys.stderr)
408 print('', file=sys.stderr)
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt464 val stderr = StringWriter() in Test invalid arguments() constant
468 stderr = PrintWriter(stderr) in Test invalid arguments()
478 """.trimIndent(), stderr.toString() in Test invalid arguments()
487 val stderr = StringWriter() in Test help() constant
491 stderr = PrintWriter(stderr) in Test help()
493 assertEquals("", stderr.toString()) in Test help()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt96 stderr: PrintWriter = PrintWriter(OutputStreamWriter(System.err)), in run()
111 options = Options(modifiedArgs, stdout, stderr) in run()
120 repeatErrors(stderr, options.allReporters, options.repeatErrorsMax) in run()
126 stderr.print("Error: ") in run()
129 stderr.print("Warning: ") in run()
131stderr.println("$PROGRAM_NAME detected access to files that are not explicitly specified. See ${op… in run()
135 stderr.flush() in run()
139 if (e.stderr.isNotBlank()) { in run()
140 stderr.println("\n${prefix}${e.stderr}") in run()
167 it.writeErrorMessage(stderr) in run()
[all …]
DDriverException.kt20 val stderr: String = "", constant in com.android.tools.metalava.DriverException
22 val exitCode: Int = if (stderr.isBlank()) 0 else -1
23 ) : RuntimeException(stdout + stderr)
DOptions.kt187 var stderr: PrintWriter = PrintWriter(OutputStreamWriter(System.err)) in <lambda>() variable in com.android.tools.metalava.Options
842 throw DriverException(stderr = "Only one $ARG_SUBTRACT_API can be supplied") in <lambda>()
985stderr = "$ARG_TYPEDEFS_IN_SIGNATURES must be one of ref, inline, none; was $type" in <lambda>()
1595 … else -> throw DriverException(stderr = "Unexpected signature format; expected v1, v2, v3 or v4") in <lambda>()
1614 throw DriverException(stderr = "Invalid argument $arg\n\n$usage") in <lambda>()
1689 …throw DriverException(stderr = "Cannot supply both $ARG_UPDATE_API and $ARG_CHECK_API at the same … in <lambda>()
1816 throw DriverException(stderr = "Could not find android.jar for API level " + in <lambda>()
1820 … throw DriverException(stderr = "Do not specify both $ARG_SDK_HOME and $ARG_JDK_HOME") in <lambda>()
1925 … throw DriverException(stderr = "Could not find android.jar for API level $apiLevel; the " + in <lambda>()
1954 else -> throw DriverException(stderr = "Unexpected $answer; expected yes or no") in <lambda>()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dfastboot.py26 def __init__(self, cmd, stdout, stderr, ret_code): argument
30 self.stderr = stderr
36 self.stderr)
68 ret, out, err = result.exit_status, result.stdout, result.stderr
77 cmd=command, stdout=out, stderr=err, ret_code=ret)
Dpacket_capture.py111 if result.stderr or SCAN_IFACE not in result.stdout:
131 if result.stderr or iface not in result.stdout:
138 if not result.stderr or 'No such device' not in result.stderr:
184 if result.stderr:
243 if result.stderr or 'channel %s' % channel not in result.stdout:
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py61 def stderr(self): member in Result
72 stderr=bytes(), argument
91 self._raw_stderr = stderr
138 stderr=subprocess.PIPE,
153 stderr=err,
194 stderr=subprocess.STDOUT)
/tools/external_updater/
Dnotifier.py108 stderr=subprocess.PIPE,
156 stderr: {}""".format(proj, latest_ver, err.stdout, err.stderr)
188 stderr=subprocess.PIPE,
191 stderr = out.stderr.decode('utf-8')
201 """.format(stdout, stderr)
/tools/treble/split/
Dmanifest_split.py611 print(__doc__, file=sys.stderr)
612 print("**%s**" % str(err), file=sys.stderr)
632 print(__doc__, file=sys.stderr)
666 print(__doc__, file=sys.stderr)
667 print("**Missing targets**", file=sys.stderr)
670 print(__doc__, file=sys.stderr)
671 print("**Missing required flag --manifest**", file=sys.stderr)
674 print(__doc__, file=sys.stderr)
675 print("**Missing required flag --split-manifest**", file=sys.stderr)
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py70 file=sys.stderr)
114 file=sys.stderr)
145 (repr(args.command[0]), repr(func_names)), file=sys.stderr)
160 args.command[0], file=sys.stderr)
168 file=sys.stderr)
/tools/test/connectivity/acts/framework/acts/controllers/adb_lib/
Derror.py23 def __init__(self, cmd, stdout, stderr, ret_code): argument
27 self.stderr = stderr
32 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
/tools/treble/build/sandbox/
Dnsjail.py70 stderr=None, argument
139 stderr=stderr)
320 stderr=None): argument
354 subprocess.check_call(nsjail_command, stdout=stdout, stderr=stderr)
/tools/acloud/internal/lib/
Dssh_test.py93 stderr=-2,
112 stderr=-2,
126 stderr=-2,
145 stderr=-2,
159 stderr=-2,
178 stderr=-2,
Dssh.py52 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
79 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
112 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
121 print(stdout.strip(), file=sys.stderr)
261 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
/tools/repohooks/tools/
Dpylint.py41 'support cannot be guaranteed' % (__file__,), file=sys.stderr)
59 'sudo apt-get install pylint' % (__file__,), file=sys.stderr)
120 file=sys.stderr)
122 (__file__, os.path.basename(cmd[0])), file=sys.stderr)
/tools/platform-compat/build/
Dprocess-compat-config-test.py36 self.stderr = StringIO()
37 self.merger.write_errors_to = self.stderr
87 …self.assertIn(r'ERROR: Duplicate definitions for compat change with ID 1234', self.stderr.getvalue…
94 …In(r'ERROR: Duplicate definitions for compat change with name TEST_CHANGE', self.stderr.getvalue())
/tools/test/connectivity/acts/framework/acts/
Dutils.py402 stderr=subprocess.PIPE,
464 stderr=subprocess.PIPE,
872 if adb_error.stderr and \
873 not adb_error.stderr.startswith("Error type 3\n"):
875 adb_error.stderr)
889 if adb_error.stderr and \
890 not adb_error.stderr.startswith("Error type 3\n"):
892 "%s " % adb_error.stderr)
1670 'stderr': ping_result.stderr,
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Droute.py64 if 'File exists' in e.result.stderr:
66 if 'Network is down' in e.result.stderr:
175 if 'No such process' in e.result.stderr:

1234