IAutoRetriableTest
public
interface
IAutoRetriableTest
implements
IRemoteTest
com.android.tradefed.testtype.retry.IAutoRetriableTest
|
Known indirect subclasses
|
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
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,
previousResults,
skipList)
Delegated from ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) 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 |
: The list of TestRunResult of the test that just ran. |
skipList |
: The set of items that shouldn't be retried. |
Returns |
boolean |
True if we should retry, False otherwise. |