IAutoRetriableTest
public
interface
IAutoRetriableTest
implements
IRemoteTest
| com.android.tradefed.testtype.retry.IAutoRetriableTest |
Interface for an IRemoteTest that doesn't implement ITestFilterReceiver but still
wishes to support auto-retry.
The recommendation for most runners is to implement ITestFilterReceiver and give
granular control over what tests are running for the harness to handle. But in some situation, it
might not be possible and some delegated form of retry is necessary.
Summary
Public methods | |
|---|---|
default
boolean
|
shouldRetry(int attemptJustExecuted, List<TestRunResult> previousResults, Set<String> skipList)
Delegated from |
Public methods
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,
List<TestRunResult> previousResults,
Set<String> skipList)Delegated from IRetryDecision.shouldRetry(IRemoteTest,int,List). Decide whether or
not retry should be attempted. Also make any necessary changes to the IRemoteTest to
be retried (Applying filters, preparing next run, etc.).
| Parameters | |
|---|---|
attemptJustExecuted |
int: The number of the attempt that we just ran. |
previousResults |
List: The list of TestRunResult of the test that just ran. |
skipList |
Set: The set of items that shouldn't be retried. |
| Returns | |
|---|---|
boolean |
True if we should retry, False otherwise. |
| Throws | |
|---|---|
DeviceNotAvailableException |
Can be thrown during device recovery |