SemaphoreTokenTargetPreparer

public class SemaphoreTokenTargetPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.SemaphoreTokenTargetPreparer


This is a preparer used to use token to serialize test excution in tradefed host. only the device acquire token will be allow to start the test. Others will wait until it released This can't be only used when you have one test in tradefed and use shared resources. Please make sure only a single test running on the host with different DUTs User need to add --semaphore-token:no-disable in the command file.

Summary

Public constructors

SemaphoreTokenTargetPreparer()

Public methods

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

Public constructors

SemaphoreTokenTargetPreparer

public SemaphoreTokenTargetPreparer ()

Public methods

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parameters
testInfo TestInformation

e Throwable

Throws
DeviceNotAvailableException