RunHostCommandTargetPreparer
public
class
RunHostCommandTargetPreparer
extends BaseTargetPreparer
implements
ITestLoggerReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunHostCommandTargetPreparer |
Target preparer to run arbitrary host commands before and after running the test.
Summary
Public constructors | |
---|---|
RunHostCommandTargetPreparer()
|
Public methods | |
---|---|
void
|
setTestLogger(ITestLogger testLogger)
Injects the |
final
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Public constructors
RunHostCommandTargetPreparer
public RunHostCommandTargetPreparer ()
Public methods
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Injects the ITestLogger
instance
Parameters | |
---|---|
testLogger |
ITestLogger |
setUp
public final 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 |