Home
last modified time | relevance | path

Searched refs:errorMessage (Results 1 – 25 of 43) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/result/
DLogcatCrashResultForwarder.java92 public void testRunFailed(String errorMessage) { in testRunFailed() argument
93 testRunFailed(FailureDescription.create(errorMessage, FailureStatus.TEST_FAILURE)); in testRunFailed()
101 String errorMessage = error.getErrorMessage(); in testRunFailed() local
103 errorMessage = addJavaCrashToString(mLogcatItem, errorMessage); in testRunFailed()
106 errorMessage = extractCrashAndAddToMessage(errorMessage, mLastStartTime); in testRunFailed()
108 error.setErrorMessage(errorMessage); in testRunFailed()
109 if (isCrash(errorMessage)) { in testRunFailed()
122 private String extractCrashAndAddToMessage(String errorMessage, Long startTime) { in extractCrashAndAddToMessage() argument
123 if (isCrash(errorMessage) && startTime != null) { in extractCrashAndAddToMessage()
125 errorMessage = addJavaCrashToString(mLogcatItem, errorMessage); in extractCrashAndAddToMessage()
[all …]
DCollectingTestListener.java220 String errorMessage = in testRunStarted() local
225 result.testRunFailed(errorMessage); in testRunStarted()
249 public void testRunFailed(String errorMessage) { in testRunFailed() argument
251 mCurrentTestRunResult.testRunFailed(errorMessage); in testRunFailed()
DBugreportCollector.java473 public void testRunFailed(String errorMessage) { in testRunFailed() argument
474 mListener.testRunFailed(errorMessage); in testRunFailed()
475 mCollector.testRunFailed(errorMessage); in testRunFailed()
DNameMangleListener.java104 public void testRunFailed(String errorMessage) { in testRunFailed() argument
105 mListener.testRunFailed(errorMessage); in testRunFailed()
DInvocationToJUnitResultForwarder.java86 public void testRunFailed(String errorMessage) { in testRunFailed() argument
88 Log.e(LOG_TAG, String.format("Run failed: %s", errorMessage)); in testRunFailed()
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java97 String errorMessage = null; in TestMapping() local
149 errorMessage = String.format("TEST_MAPPING file does not exist: %s.", path.toString()); in TestMapping()
150 CLog.e(errorMessage); in TestMapping()
152 errorMessage = in TestMapping()
157 if (errorMessage != null) { in TestMapping()
158 CLog.e(errorMessage); in TestMapping()
159 throw new RuntimeException(errorMessage); in TestMapping()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DFailureDescription.java134 public void setErrorMessage(String errorMessage) { in setErrorMessage() argument
135 mErrorMessage = errorMessage; in setErrorMessage()
155 public static FailureDescription create(String errorMessage) { in create() argument
156 return create(errorMessage, null); in create()
167 String errorMessage, @Nullable TestRecordProto.FailureStatus status) { in create() argument
169 info.mErrorMessage = errorMessage; in create()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java252 public void testRunFailed(String errorMessage) { in testRun_deviceReboot() argument
253 error[0] = errorMessage; in testRun_deviceReboot()
281 public void testRunFailed(String errorMessage) { in testRun_maxTimeout() argument
282 called[0] = errorMessage; in testRun_maxTimeout()
335 public void testRunFailed(String errorMessage) { in testRun_deviceRuntimeReset() argument
336 error[0] = errorMessage; in testRun_deviceRuntimeReset()
/tools/asuite/asuite_plugin/src/java/com/android/atest/
DAtestUtils.java84 StringBuilder errorMessage = new StringBuilder("Please check:\n"); in checkError() local
86 errorMessage.append("- Atest target" + EMPTY_STRING_ERROR); in checkError()
89 errorMessage.append("- lunch target" + EMPTY_STRING_ERROR); in checkError()
92 errorMessage.append( in checkError()
96 return errorMessage.toString(); in checkError()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestListener.java61 StringBuilder errorMessage = new StringBuilder(); in testRunEnded() local
62 errorMessage.append( in testRunEnded()
65 errorMessage.append(String.format(" Partial list: %s", mDuplicateTests)); in testRunEnded()
67 errorMessage.append(String.format(" Full list: %s", mDuplicateTests)); in testRunEnded()
69 FailureDescription error = FailureDescription.create(errorMessage.toString()); in testRunEnded()
DGTestXmlResultParser.java101 String errorMessage = String.format("Failed to get an xml output from tests," in parseResult()
104 errorMessage += "\nlogs:\n" + output.getOutput(); in parseResult()
105 CLog.e(errorMessage); in parseResult()
107 listener.testRunFailed(errorMessage); in parseResult()
DGoogleBenchmarkResultParser.java100 String errorMessage = testResults.get("error_message"); in parse() local
101 if (Strings.isNullOrEmpty(errorMessage)) { in parse()
107 String.format("Benchmark reported an error: %s", errorMessage)); in parse()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java99 String errorMessage = "Error when dumping the config."; in dumpConfigForVersion() local
101 errorMessage += in dumpConfigForVersion()
104 errorMessage += String.format(" stderr: %s", result.getStderr()); in dumpConfigForVersion()
105 throw new SandboxConfigurationException(errorMessage); in dumpConfigForVersion()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableHostTest.java139 String errorMessage = FileUtil.readStringFromFile(stdout); in runBinary() local
141 errorMessage += "\nTimeout."; in runBinary()
145 errorMessage += String.format("\nExit Code: %s", res.getExitCode()); in runBinary()
149 FailureDescription.create(errorMessage).setFailureStatus(status)); in runBinary()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DDeviceStorageStatusChecker.java63 String errorMessage = in preExecutionCheck() local
67 CLog.e(errorMessage); in preExecutionCheck()
68 result.setErrorMessage(errorMessage); in preExecutionCheck()
DDeviceSettingChecker.java90 String errorMessage = in preExecutionCheck() local
94 CLog.w(errorMessage); in preExecutionCheck()
95 result.setErrorMessage(errorMessage); in preExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java86 public void testRunFailed(String errorMessage) { in testRunFailed() argument
87 CLog.d("ModuleListener.testRunFailed(%s)", errorMessage); in testRunFailed()
88 super.testRunFailed(errorMessage); in testRunFailed()
DITestSuite.java832 String errorMessage = in runPreModuleCheck() local
834 failures.put(checker.getClass().getCanonicalName(), errorMessage); in runPreModuleCheck() local
880 String errorMessage = in runPostModuleCheck() local
882 failures.put(checker.getClass().getCanonicalName(), errorMessage); in runPostModuleCheck() local
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraStartupTest.java112 private void exitTestRunsOnError(ITestInvocationListener listener, String errorMessage) { in exitTestRunsOnError() argument
114 + " Test results will not be posted. errorMsg: %s", errorMessage); in exitTestRunsOnError()
115 listener.testRunFailed(errorMessage); in exitTestRunsOnError()
DCameraTestBase.java317 public void testRunFailed(String errorMessage) { in testRunFailed() argument
318 super.testRunFailed(errorMessage); in testRunFailed()
319 mFatalErrors.put(getRuKey(), errorMessage); in testRunFailed() local
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DNoisyDryRunTest.java172 String errorMessage = String.format("Failed to parse command line: %s.", cmdLine); in testCommandLines()
173 CLog.e(errorMessage); in testCommandLines()
177 String.format("%s\n%s", errorMessage, StreamUtil.getStackTrace(e))); in testCommandLines()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java334 public void testRunFailed(String errorMessage) { in testRunFailed() argument
335 if (errorMessage == null) { in testRunFailed()
338 testRunFailed(FailureDescription.create(errorMessage)); in testRunFailed()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java722 private FailureDescription createInvocationFailure(String errorMessage, FailureStatus status) { in createInvocationFailure() argument
723 FailureDescription failure = FailureDescription.create(errorMessage); in createInvocationFailure()
725 failure.setCause(new RuntimeException(errorMessage)); in createInvocationFailure()
/tools/asuite/asuite_plugin/src/java/com/android/atest/toolWindow/
DAtestToolWindow.java160 String errorMessage = in setRunButton()
162 MessageDialog.showMessageDialog(errorMessage); in setRunButton()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/logger/
DCurrentInvocation.java169 String errorMessage, ErrorIdentifier errorIdentifier) { in createFailure() argument
170 FailureDescription failure = FailureDescription.create(errorMessage); in createFailure()

12