Home
last modified time | relevance | path

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

12345

/tools/repohooks/rh/
Dutils.py66 def __init__(self, args=None, returncode=None, stdout=None, stderr=None): argument
70 self.stderr = stderr
74 args=args, returncode=returncode, stdout=stdout, stderr=stderr)
100 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
113 self.stderr = stderr
122 def stringify(self, stdout=True, stderr=True): argument
135 if stderr and self.stderr:
136 items.append(self.stderr)
188 file=sys.stderr)
353 sys.stderr.flush()
[all …]
Dutils_unittest.py141 self.assertIsNone(ret.stderr)
147 self.assertIsNone(ret.stderr)
153 self.assertEqual('hi\n', ret.stderr)
159 self.assertIsNone(ret.stderr)
165 self.assertIsNone(ret.stderr)
/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()
334 File stderr = null; in testRuntimedCmd_withFileOutputStream() local
340 stderr = FileUtil.createTempFile("stderr_subprocess_", ".txt"); in testRuntimedCmd_withFileOutputStream()
341 stderrStream = new FileOutputStream(stderr); in testRuntimedCmd_withFileOutputStream()
355 assertTrue(stderr.exists()); in testRuntimedCmd_withFileOutputStream()
358 assertEquals("TEST STDERR\n", FileUtil.readStringFromFile(stderr)); in testRuntimedCmd_withFileOutputStream()
363 FileUtil.deleteFile(stderr); in testRuntimedCmd_withFileOutputStream()
389 File stderr = null; in testRuntimedCmd_notWritable() local
396 stderr = FileUtil.createTempFile("stderr_subprocess_", ".txt"); in testRuntimedCmd_notWritable()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt100 stderr: PrintWriter = PrintWriter(OutputStreamWriter(System.err)), in run()
115 options = Options(modifiedArgs, stdout, stderr) in run()
124 repeatErrors(stderr, options.allReporters, options.repeatErrorsMax) in run()
130 stderr.print("Error: ") in run()
133 stderr.print("Warning: ") in run()
135stderr.println("$PROGRAM_NAME detected access to files that are not explicitly specified. See ${op… in run()
139 stderr.flush() in run()
143 if (e.stderr.isNotBlank()) { in run()
144 stderr.println("\n${prefix}${e.stderr}") in run()
171 it.writeErrorMessage(stderr) in run()
[all …]
DOptions.kt184 var stderr: PrintWriter = PrintWriter(OutputStreamWriter(System.err)) in <lambda>() variable in com.android.tools.metalava.Options
820 throw DriverException(stderr = "Only one $ARG_SUBTRACT_API can be supplied") in <lambda>()
953stderr = "$ARG_TYPEDEFS_IN_SIGNATURES must be one of ref, inline, none; was $type" in <lambda>()
1555 … else -> throw DriverException(stderr = "Unexpected signature format; expected v1, v2 or v3") in <lambda>()
1574 throw DriverException(stderr = "Invalid argument $arg\n\n$usage") in <lambda>()
1647 …throw DriverException(stderr = "Cannot supply both $ARG_UPDATE_API and $ARG_CHECK_API at the same … in <lambda>()
1771 throw DriverException(stderr = "Could not find android.jar for API level " + in <lambda>()
1775 … throw DriverException(stderr = "Do not specify both $ARG_SDK_HOME and $ARG_JDK_HOME") in <lambda>()
1880 … throw DriverException(stderr = "Could not find android.jar for API level $apiLevel; the " + in <lambda>()
1909 else -> throw DriverException(stderr = "Unexpected $answer; expected yes or no") in <lambda>()
[all …]
/tools/repohooks/
Dpre-upload.py35 print('repohooks: error: Python-2.7.5+ is required', file=sys.stderr)
38 print('repohooks: error: Python-3.5+ is required', file=sys.stderr)
43 'please upgrade soon to maintain support.', file=sys.stderr)
138 print(warning, file=sys.stderr)
149 print(error, file=sys.stderr)
243 file=sys.stderr)
246 'attempting to upload again.\n', file=sys.stderr)
355 print('%s cannot be found.' % project_name, file=sys.stderr)
356 print('Please specify a valid project.', file=sys.stderr)
360 file=sys.stderr)
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py24 def __init__(self, exit_status=0, stderr='', stdout=''): argument
26 self.stderr = stderr
39 mock_job = MockJob(exit_status=1, stderr='error: device not found')
47 exit_status=1, stderr='error: device \'DEADBEEF\' not found')
54 mock_job = MockJob(exit_status=1, stderr='error not related to adb')
60 mock_job = MockJob(exit_status=0, stderr='', stdout='FEEDACAB')
66 mock_job = MockJob(exit_status=0, stderr='', stdout='')
74 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/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
52 self.stderr = stderr
57 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt451 val stderr = StringWriter() in Test invalid arguments() constant
455 stderr = PrintWriter(stderr) in Test invalid arguments()
465 """.trimIndent(), stderr.toString() in Test invalid arguments()
474 val stderr = StringWriter() in Test help() constant
478 stderr = PrintWriter(stderr) in Test help()
480 assertEquals("", stderr.toString()) in Test help()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAaptParser.java144 String stderr = result.getStderr(); in parse() local
145 if (stderr != null && !stderr.isEmpty()) { in parse()
146 CLog.e("aapt dump badging stderr: %s", stderr); in parse()
167 stderr = result.getStderr(); in parse()
168 if (stderr != null && !stderr.isEmpty()) { in parse()
169 CLog.e("aapt dump xmltree AndroidManifest.xml stderr: %s", stderr); in parse()
/tools/treble/split/
Dmanifest_split.py574 print(__doc__, file=sys.stderr)
575 print("**%s**" % str(err), file=sys.stderr)
594 print(__doc__, file=sys.stderr)
626 print(__doc__, file=sys.stderr)
627 print("**Missing targets**", file=sys.stderr)
630 print(__doc__, file=sys.stderr)
631 print("**Missing required flag --manifest**", file=sys.stderr)
634 print(__doc__, file=sys.stderr)
635 print("**Missing required flag --split-manifest**", file=sys.stderr)
/tools/repohooks/tools/
Dcpplint.py957 sys.stderr.write('Category \'%s\' errors found: %d\n' %
1242 sys.stderr.write('%s(%s): error cpplint: [%s] %s [%d]\n' % (
1245 sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
1248 sys.stderr.write('%s:%s: %s [%s] [%d]\n' % (
1834 sys.stderr.write("\n_root fixup, _root = '%s', repository name = '%s'\n"
1840 sys.stderr.write("_root unspecified\n")
1856 sys.stderr.write(("_root lstrip (maybe_path=%s, file_path_from_root=%s," +
1870 sys.stderr.write(("_root prepend (maybe_path=%s, full_path=%s, " +
1877 sys.stderr.write("_root ignore, returning %s\n" %(file_path_from_root))
5997 sys.stderr.write('Ignoring "%s": file excluded by "%s". '
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java256 String stderr = result.getStderr(); in isSuccessful() local
257 if (stderr != null && stderr.contains(ERROR_PROVIDER_NOT_INSTALLED)) { in isSuccessful()
260 return Strings.isNullOrEmpty(stderr); in isSuccessful()
405 String stderr = pullResult.getStderr(); in pullFileInternal() local
408 deviceFilePath, localFile, stderr); in pullFileInternal()
409 if (stderr.contains(ERROR_PROVIDER_NOT_INSTALLED)) { in pullFileInternal()
/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.py94 stderr=subprocess.PIPE,
133 stderr: {}""".format(proj, latest_ver, err.stdout, err.stderr)
164 stderr=subprocess.PIPE,
167 stderr = out.stderr.decode('utf-8')
177 """.format(stdout, stderr)
/tools/test/connectivity/acts/framework/acts/
Dutils.py400 stderr=subprocess.PIPE,
462 stderr=subprocess.PIPE,
871 if adb_error.stderr and \
872 not adb_error.stderr.startswith("Error type 3\n"):
874 adb_error.stderr)
888 if adb_error.stderr and \
889 not adb_error.stderr.startswith("Error type 3\n"):
891 "%s " % adb_error.stderr)
/tools/acloud/internal/lib/
Dssh_test.py92 stderr=-2,
110 stderr=-2,
123 stderr=-2,
141 stderr=-2,
154 stderr=-2,
172 stderr=-2,
/tools/treble/build/sandbox/
Dnsjail.py70 stderr=None): argument
136 stderr=stderr)
310 stderr=None): argument
344 subprocess.check_call(nsjail_command, stdout=stdout, stderr=stderr)
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java84 private static void handleStderrException(Integer exitCode, String stderr) throws Throwable { in handleStderrException() argument
87 for (String line : stderr.split("\n")) { in handleStderrException()
104 stderr = in handleStderrException()
106 "Sandbox finished with error exit code: %s.\nStderr: %s", exitCode, stderr); in handleStderrException()
107 throw new RuntimeException(stderr); in handleStderrException()
/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/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java684 OutputStream stderr = null; in testGetSshBugreport() local
689 EasyMock.eq(stderr), in testGetSshBugreport()
738 OutputStream stderr = null; in testGetNestedSshBugreport() local
743 EasyMock.eq(stderr), in testGetNestedSshBugreport()
763 EasyMock.eq(stderr), in testGetNestedSshBugreport()
814 OutputStream stderr = null; in testGetSshBugreport_Fail() local
819 EasyMock.eq(stderr), in testGetSshBugreport_Fail()

12345