Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 25 of 122) sorted by relevance

12345

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DDeviceUnavailableMonitor.java45 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
49 mUnavailableException = analyzeFailure(failure); in testRunFailed()
53 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
57 mUnavailableException = analyzeFailure(failure); in testFailed()
61 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
66 mUnavailableException = analyzeFailure(failure); in invocationFailed()
79 private DeviceNotAvailableException analyzeFailure(FailureDescription failure) { in analyzeFailure() argument
80 if (failure.getCause() != null in analyzeFailure()
81 && failure.getCause() instanceof DeviceNotAvailableException) { in analyzeFailure()
82 return (DeviceNotAvailableException) failure.getCause(); in analyzeFailure()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java212 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
213 mInvocationFailureDescription = failure; in invocationFailed()
357 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument
360 debugBuilder.setErrorMessage(failure.toString()); in testRunFailed()
361 if (failure.getFailureStatus() != null) { in testRunFailed()
362 debugBuilder.setFailureStatus(failure.getFailureStatus()); in testRunFailed()
365 if (failure.getActionInProgress() != null) { in testRunFailed()
366 debugContext.setActionInProgress(failure.getActionInProgress().toString()); in testRunFailed()
368 if (!Strings.isNullOrEmpty(failure.getDebugHelpMessage())) { in testRunFailed()
369 debugContext.setDebugHelpMessage(failure.getDebugHelpMessage()); in testRunFailed()
[all …]
DProtoResultParser.java263 FailureDescription failure = in completeModuleEvents() local
266 mListener.testFailed(mCurrentTestCase, failure); in completeModuleEvents()
270 FailureDescription failure = in completeModuleEvents() local
274 mListener.testRunFailed(failure); in completeModuleEvents()
376 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded() local
379 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleInvocationEnded()
381 parseDebugInfoContext(endInvocationProto.getDebugInfo(), failure); in handleInvocationEnded() local
389 failure.setCause(invocationError); in handleInvocationEnded()
391 failure.setErrorIdentifier(InfraErrorIdentifier.OUT_OF_MEMORY_ERROR); in handleInvocationEnded()
396 failure.setCause(new RuntimeException(failure.getErrorMessage())); in handleInvocationEnded()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DEventsLoggerListener.java54 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
58 failure.getFailureStatus(), failure.getErrorIdentifier(), failure)); in invocationFailed()
106 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
110 failure.getErrorMessage(), in testRunFailed()
111 failure.getFailureStatus(), in testRunFailed()
112 failure.getErrorIdentifier())); in testRunFailed()
136 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
146 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
DLogcatCrashResultForwarder.java104 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
105 if (FailureStatus.NOT_EXECUTED.equals(failure.getFailureStatus())) { in testFailed()
106 super.testFailed(test, failure); in testFailed()
110 String trace = extractCrashAndAddToMessage(failure.getErrorMessage(), mStartTime); in testFailed()
112 failure.setErrorIdentifier(DeviceErrorIdentifier.INSTRUMENTATION_LOWMEMORYKILLER); in testFailed()
113 } else if (isCrash(failure.getErrorMessage())) { in testFailed()
114 failure.setErrorIdentifier(DeviceErrorIdentifier.INSTRUMENTATION_CRASH); in testFailed()
115 } else if (isTimeout(failure.getErrorMessage())) { in testFailed()
116 failure.setErrorIdentifier(TestErrorIdentifier.INSTRUMENTATION_TIMED_OUT); in testFailed()
118 failure.setErrorMessage(trace); in testFailed()
[all …]
DResultForwarder.java124 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
127 listener.invocationFailed(failure); in invocationFailed()
242 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
245 listener.testRunFailed(failure); in testRunFailed()
315 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
318 listener.testFailed(test, failure); in testFailed()
372 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
375 listener.testAssumptionFailure(test, failure); in testAssumptionFailure()
DSubprocessResultsReporter.java101 public void testAssumptionFailure(TestDescription testId, FailureDescription failure) { in testAssumptionFailure() argument
103 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), failure); in testAssumptionFailure()
144 public void testFailed(TestDescription testId, FailureDescription failure) { in testFailed() argument
146 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), failure); in testFailed()
175 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
176 TestRunFailedEventInfo info = new TestRunFailedEventInfo(failure); in testRunFailed()
292 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
293 InvocationFailedEventInfo info = new InvocationFailedEventInfo(failure); in invocationFailed()
DFilteredResultForwarder.java95 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
99 super.testAssumptionFailure(test, failure); in testAssumptionFailure()
111 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
115 super.testFailed(test, failure); in testFailed()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DRunNotifierWrapper.java83 public void fireTestFailure(Failure failure) { in fireTestFailure() argument
84 notifier.fireTestFailure(failure); in fireTestFailure()
85 if (failure.getException() instanceof DeviceNotAvailableException) { in fireTestFailure()
86 mDnae = (DeviceNotAvailableException) failure.getException(); in fireTestFailure()
87 } else if (failure.getException() instanceof InterruptedException) { in fireTestFailure()
88 throw new CarryInterruptedException((InterruptedException) failure.getException()); in fireTestFailure()
93 public void fireTestAssumptionFailed(Failure failure) { in fireTestAssumptionFailed() argument
94 notifier.fireTestAssumptionFailed(failure); in fireTestAssumptionFailed()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DMultiFailureDescription.java51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() argument
52 if (failure instanceof MultiFailureDescription) { in addFailure()
53 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addFailure()
55 mFailures.add(failure); in addFailure()
154 for (FailureDescription failure : failures) { in addMultiFailures()
155 if (failure instanceof MultiFailureDescription) { in addMultiFailures()
156 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addMultiFailures()
158 mFailures.add(failure); in addMultiFailures()
DITestLifeCycleReceiver.java96 public default void testRunFailed(FailureDescription failure) { in testRunFailed() argument
97 testRunFailed(failure.toString()); in testRunFailed()
165 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
166 testFailed(test, failure.toString()); in testFailed()
183 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
184 testAssumptionFailure(test, failure.toString()); in testAssumptionFailure()
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveMobilityStressTest.py163 failure = 0
174 failure += 1
183 self.dut.log.info("Crashes found: %s", failure)
184 if failure:
252 failure = 0
266 failure += 1
279 self.dut.log.info("Call test failure: %s/%s", failure, total_count)
280 if failure:
286 failure = 0
294 failure += 1
[all …]
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationResultForwarder.java48 public void testFailure(Failure failure) throws IOException { in testFailure() argument
49 Description desc = failure.getDescription(); in testFailure()
50 System.err.println("ERROR: Test failed due to following exception: " + failure.getTrace()); in testFailure()
56 .setMessage(failure.getTrace()) in testFailure()
66 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
69 Description desc = failure.getDescription(); in testAssumptionFailure()
73 testAssumptionFailure(new Failure(child, failure.getException())); in testAssumptionFailure()
84 .setMessage(failure.getMessage()) in testAssumptionFailure()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java125 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
128 failure.getFailureStatus(), in testRunFailed()
129 failure.getErrorIdentifier(), in testRunFailed()
130 failure.getErrorMessage(), in testRunFailed()
132 super.testRunFailed(failure); in testRunFailed()
229 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
230 super.testAssumptionFailure(test, failure); in testAssumptionFailure()
232 mTrace = failure.toString(); in testAssumptionFailure()
255 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
260 mTrace = failure.toString(); in testFailed()
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/
DBtCarPairedConnectDisconnectTest.py113 failure = 0
135 failure = failure + 1
153 failure = failure + 1
157 failure, NUM_TEST_RUNS))
158 if failure > 0:
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/
DForwardingTestListener.java71 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
72 delegate().testRunFailed(failure); in testRunFailed()
106 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
107 delegate().testFailed(test, failure); in testFailed()
116 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
117 delegate().testAssumptionFailure(test, failure); in testAssumptionFailure()
161 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
162 delegate().invocationFailed(failure); in invocationFailed()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkResultParser.java77 FailureDescription failure = in parse()
80 mTestListener.testRunFailed(failure); in parse()
82 FailureDescription failure; in parse()
84 failure = in parse()
88 failure = in parse()
92 mTestListener.testRunFailed(failure); in parse()
97 FailureDescription failure = in parse()
101 mTestListener.testRunFailed(failure); in parse()
DTestTimeoutEnforcer.java91 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
92 super.testFailed(test, failure); in testFailed()
105 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
106 super.testAssumptionFailure(test, failure); in testAssumptionFailure()
130 FailureDescription failure = in testEnded() local
138 super.testFailed(test, failure); in testEnded()
/tools/tradefederation/core/javatests/com/android/tradefed/retry/
DBaseRetryDecisionTest.java174 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure() local
175 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure()
184 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_noFullRetry() local
185 failure.setFullRerun(false); in testShouldRetry_runFailure_noFullRetry()
186 TestRunResult result = createResult(FailureDescription.create("failure"), null, failure); in testShouldRetry_runFailure_noFullRetry()
197 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable() local
198 failure.setRetriable(false); in testShouldRetry_runFailure_nonRetriable()
199 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure_nonRetriable()
213 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_multi_runFailure_nonRetriable() local
214 failure.setRetriable(false); in testShouldRetry_multi_runFailure_nonRetriable()
[all …]
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DITestInvocationListener.java86 default void invocationFailed(FailureDescription failure) { in invocationFailed() argument
87 if (failure.getCause() != null) { in invocationFailed()
88 invocationFailed(failure.getCause()); in invocationFailed()
92 String.format("ConvertedFailure: %s", failure.getErrorMessage()))); in invocationFailed()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java151 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
152 super.invocationFailed(failure); in invocationFailed()
153 mAllForwarder.invocationFailed(failure); in invocationFailed()
296 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
297 super.testRunFailed(failure); in testRunFailed()
300 mDetailedForwarder.testRunFailed(failure); in testRunFailed()
329 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
330 super.testAssumptionFailure(test, failure); in testAssumptionFailure()
331 mDetailedForwarder.testAssumptionFailure(test, failure); in testAssumptionFailure()
341 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java146 public TestRunFailedEventInfo(FailureDescription failure) { in TestRunFailedEventInfo() argument
147 mFailure = failure; in TestRunFailedEventInfo()
234 public InvocationFailedEventInfo(FailureDescription failure) { in InvocationFailedEventInfo() argument
235 if (failure.getCause() != null) { in InvocationFailedEventInfo()
236 mCause = failure.getCause(); in InvocationFailedEventInfo()
238 mCause = new Throwable(failure.getErrorMessage()); in InvocationFailedEventInfo()
240 mFailure = failure; in InvocationFailedEventInfo()
438 public FailedTestEventInfo(String className, String testName, FailureDescription failure) { in FailedTestEventInfo() argument
440 mFailure = failure; in FailedTestEventInfo()
733 FailureDescription failure, JSONObject jsonObject) { in updateFailureFromJsonObject() argument
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DJUnitXmlParserTest.java88 FailureDescription failure = failureCaptor.getValue(); in testParse() local
89 assertTrue(failure.getErrorMessage().contains("java.lang.NullPointerException")); in testParse()
102 FailureDescription failure = in testParseErrorAndSkipped() local
115 verify(mMockListener).testFailed(Mockito.eq(test3), Mockito.eq(failure)); in testParseErrorAndSkipped()
125 FailureDescription failure = in testParseError_format() local
131 verify(mMockListener).testFailed(Mockito.eq(test1), Mockito.eq(failure)); in testParseError_format()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java213 public void onTestRunFailed(DeviceMetricData testData, FailureDescription failure) in onTestRunFailed() argument
271 public final void invocationFailed(FailureDescription failure) { in invocationFailed() argument
272 mForwarder.invocationFailed(failure); in invocationFailed()
386 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument
390 onTestRunFailed(mRunData, failure); in testRunFailed()
402 mForwarder.testRunFailed(failure); in testRunFailed()
489 public final void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
492 if (failure.getFailureStatus() == null in testFailed()
493 || !FailureStatus.NOT_EXECUTED.equals(failure.getFailureStatus())) { in testFailed()
509 mForwarder.testFailed(test, failure); in testFailed()
[all …]
/tools/asuite/atest/tools/
Dstart_avd_unittest.py80 failure = os.path.join(SEARCH_ROOT, 'acloud', 'create_failure.json')
82 start_avd.probe_acloud_status(failure, duration),
98 failure = os.path.join(SEARCH_ROOT, 'acloud', 'create_failure.json')
100 self.assertEqual(start_avd.get_acloud_duration(failure), failure_duration)

12345