Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/result/
DLogcatCrashResultForwarder.java75 public void testRunFailed(String errorMessage) { in testRunFailed() argument
80 super.testRunFailed(addJavaCrashToString(mLogcatItem, errorMessage)); in testRunFailed()
84 errorMessage = extractCrashAndAddToMessage(errorMessage, mLastStartTime); in testRunFailed()
85 super.testRunFailed(errorMessage); in testRunFailed()
96 private String extractCrashAndAddToMessage(String errorMessage, Long startTime) { in extractCrashAndAddToMessage() argument
97 if (errorMessage.contains(ERROR_MESSAGE) && startTime != null) { in extractCrashAndAddToMessage()
99 errorMessage = addJavaCrashToString(mLogcatItem, errorMessage); in extractCrashAndAddToMessage()
101 return errorMessage; in extractCrashAndAddToMessage()
DTestRunResult.java288 public void testRunFailed(String errorMessage) { in testRunFailed() argument
289 if (errorMessage == null) { in testRunFailed()
291 errorMessage = "testRunFailed(null) was called."; in testRunFailed()
295 mRunFailureError += (ERROR_DIVIDER + errorMessage); in testRunFailed()
297 mRunFailureError = errorMessage; in testRunFailed()
DCollectingTestListener.java209 String errorMessage = in testRunStarted() local
213 result.testRunFailed(errorMessage); in testRunStarted()
235 public void testRunFailed(String errorMessage) { in testRunFailed() argument
237 mCurrentTestRunResult.testRunFailed(errorMessage); in testRunFailed()
DNameMangleListener.java104 public void testRunFailed(String errorMessage) { in testRunFailed() argument
105 mListener.testRunFailed(errorMessage); in testRunFailed()
DInvocationToJUnitResultForwarder.java82 public void testRunFailed(String errorMessage) { in testRunFailed() argument
84 Log.e(LOG_TAG, String.format("run failed: %s", 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()
DResultForwarder.java185 public void testRunFailed(String errorMessage) { in testRunFailed() argument
188 listener.testRunFailed(errorMessage); in testRunFailed()
DStubTestRunListener.java72 public void testRunFailed(String errorMessage) { in testRunFailed() argument
DITestLifeCycleReceiver.java88 public default void testRunFailed(String errorMessage) {} in testRunFailed() argument
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java76 String errorMessage = null; in TestMapping() local
127 errorMessage = String.format("TEST_MAPPING file does not exist: %s.", path.toString()); in TestMapping()
128 CLog.e(errorMessage); in TestMapping()
130 errorMessage = in TestMapping()
135 if (errorMessage != null) { in TestMapping()
136 CLog.e(errorMessage); in TestMapping()
137 throw new RuntimeException(errorMessage); in TestMapping()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java237 public void testRunFailed(String errorMessage) { in testRun_deviceReboot()
238 error[0] = errorMessage; in testRun_deviceReboot()
265 public void testRunFailed(String errorMessage) { in testRun_maxTimeout()
266 called[0] = errorMessage; in testRun_maxTimeout()
318 public void testRunFailed(String errorMessage) { in testRun_deviceRuntimeReset()
319 error[0] = errorMessage; in testRun_deviceRuntimeReset()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java98 String errorMessage = "Error when dumping the config."; in dumpConfigForVersion() local
100 errorMessage += in dumpConfigForVersion()
103 errorMessage += String.format(" stderr: %s", result.getStderr()); in dumpConfigForVersion()
104 throw new SandboxConfigurationException(errorMessage); in dumpConfigForVersion()
/tools/tradefederation/core/src/com/android/tradefed/testtype/binary/
DExecutableHostTest.java117 String errorMessage = res.getStdout(); in runBinary() local
119 errorMessage += "\nTimeout."; in runBinary()
122 errorMessage += String.format("\nExit Code: %s", res.getExitCode()); in runBinary()
124 listener.testFailed(description, errorMessage); in runBinary()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
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()
DNoisyDryRunTest.java162 String errorMessage = String.format("Failed to parse command line: %s.", cmdLine); in testCommandLines()
163 CLog.e(errorMessage); in testCommandLines()
167 String.format("%s\n%s", errorMessage, StreamUtil.getStackTrace(e))); in testCommandLines()
DAndroidJUnitTest.java499 private void reportEarlyFailure(ITestInvocationListener listener, String errorMessage) { in reportEarlyFailure() argument
501 listener.testRunFailed(errorMessage); in reportEarlyFailure()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java79 public void testRunFailed(String errorMessage) { in testRunFailed() argument
81 CLog.d("ModuleListener.testRunFailed(%s)", errorMessage); in testRunFailed()
82 super.testRunFailed(errorMessage); in testRunFailed()
DITestSuite.java730 String errorMessage = in runPreModuleCheck() local
732 failures.put(checker.getClass().getCanonicalName(), errorMessage); in runPreModuleCheck() local
778 String errorMessage = in runPostModuleCheck() local
780 failures.put(checker.getClass().getCanonicalName(), errorMessage); in runPostModuleCheck() local
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DDeviceSettingChecker.java90 String errorMessage = in preExecutionCheck() local
94 CLog.w(errorMessage); in preExecutionCheck()
95 result.setErrorMessage(errorMessage); in preExecutionCheck()
/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.java316 public void testRunFailed(String errorMessage) { in testRunFailed() argument
317 super.testRunFailed(errorMessage); in testRunFailed()
318 mFatalErrors.put(getRuKey(), errorMessage); in testRunFailed() local
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java170 public final void testRunFailed(String errorMessage) { in testRunFailed() argument
171 mForwarder.testRunFailed(errorMessage); in testRunFailed()
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTest.java272 ITestInvocationListener listener, String runName, String errorMessage) { in reportFailure() argument
274 listener.testRunFailed(errorMessage); in reportFailure()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java121 public final void testRunFailed(String errorMessage) { in testRunFailed() argument
122 mForwarder.testRunFailed(errorMessage); in testRunFailed()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java261 public final void testRunFailed(String errorMessage) { in testRunFailed() argument
264 debugBuilder.setErrorMessage(errorMessage); in testRunFailed()

12