信号量令牌目标准备器
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)
|
公共构造函数
信号量令牌目标准备器
public SemaphoreTokenTargetPreparer ()
公共方法
设置
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo | TestInformation |
投掷 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |