VersionedTfLauncher
public
class
VersionedTfLauncher
extends SubprocessTfLauncher
implements
IMultiDeviceTest,
IShardableTest
java.lang.Object | ||
↳ | com.android.tradefed.testtype.SubprocessTfLauncher | |
↳ | com.android.tradefed.testtype.VersionedTfLauncher |
A IRemoteTest
for running tests against a separate TF installation.
Launches an external java process to run the tests. Used for running the TF unit or functional tests continuously.
Summary
Public constructors | |
---|---|
VersionedTfLauncher()
|
Public methods | |
---|---|
void
|
setDeviceInfos(
|
|
split(int shardCountHint)
Alternative version of |
Protected methods | |
---|---|
void
|
preRun()
Setup before running the test. The method tokenizes the command line arguments specified by --tf-command-line, and appends the arguments to the subprocess of TF run. |
Public constructors
VersionedTfLauncher
public VersionedTfLauncher ()
Public methods
setDeviceInfos
public void setDeviceInfos (deviceInfos)
Parameters | |
---|---|
deviceInfos |
|
split
publicsplit (int shardCountHint)
Alternative version of split()
which also provides the shardCount that is attempted
to be run. This is useful for some test runner that cannot arbitrarly decide sometimes.
Parameters | |
---|---|
shardCountHint |
int : the attempted shard count. |
Returns | |
---|---|
|
a collection of subtests to be executed separately or null if test is
not currently shardable
|
Protected methods
preRun
protected void preRun ()
Setup before running the test.
The method tokenizes the command line arguments specified by --tf-command-line, and appends the arguments to the subprocess of TF run. It also passes in the serial of the test device through --serial option, to force the subprocess to use the device selected by the parent TF process.