SemaphoreTokenTargetPreparer
public class SemaphoreTokenTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.SemaphoreTokenTargetPreparer |
這是一個準備器,用於使用令牌在 tradefed 主機中序列化測試執行。只有設備取得令牌才允許開始測試。其他人會等到它發布。這不能僅在您在 tradefed 中進行一項測試並使用共享資源時使用。請確保只有一個測試在具有不同DUT的主機上運行使用者需要在命令檔中添加--semaphore-token:no-disable。
概括
公共構造函數 | |
---|---|
SemaphoreTokenTargetPreparer () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e)
|
公共構造函數
SemaphoreTokenTargetPreparer
public SemaphoreTokenTargetPreparer ()
公共方法
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |