Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  
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 ofTestRunResultof the test that just ran. | 
      
        | skipList | : The set of items that shouldn't be retried. | 
    
    
      | Returns | 
|---|
      
        | boolean | True if we should retry, False otherwise. | 
    
      
  
 
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2024-12-09 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-09 UTC."],[],[]]