PythonBinaryHostTest
public
class
PythonBinaryHostTest
extends Object
implements
IRemoteTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest |
Host test meant to run a python binary file from the Android Build system (Soong)
The test runner supports include-filter and exclude-filter. Note that exclude-filter works by ignoring the test result, instead of skipping the actual test. The tests specified in the exclude-filter will still be executed.
Summary
Nested classes | |
|---|---|
class |
PythonBinaryHostTest.PythonForwarder
Result forwarder to replace the run name by the binary name. |
Constants | |
|---|---|
String |
ANDROID_SERIAL_VAR
|
String |
LD_LIBRARY_PATH
|
Public constructors | |
|---|---|
PythonBinaryHostTest()
|
|
Public methods | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
Adds the |
void
|
addAllIncludeFilters(Set<String> filters)
Adds the |
void
|
addExcludeFilter(String filter)
Adds a filter of which tests to exclude. |
void
|
addIncludeFilter(String filter)
Adds a filter of which tests to include. |
void
|
clearExcludeFilters()
Delete all the exclude filters currently tracked. |
void
|
clearIncludeFilters()
Delete all the include filters currently tracked. |
Set<String>
|
getExcludeFilters()
Returns the current |
Set<String>
|
getIncludeFilters()
Returns the current |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
Constants
ANDROID_SERIAL_VAR
protected static final String ANDROID_SERIAL_VAR
Constant Value: "ANDROID_SERIAL"
LD_LIBRARY_PATH
protected static final String LD_LIBRARY_PATH
Constant Value: "LD_LIBRARY_PATH"
Public constructors
PythonBinaryHostTest
public PythonBinaryHostTest ()
Public methods
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
Adds the Set of filters of which tests to exclude.
| Parameters | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
Adds the Set of filters of which tests to include.
| Parameters | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
Adds a filter of which tests to exclude.
| Parameters | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Adds a filter of which tests to include.
| Parameters | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
Delete all the exclude filters currently tracked.
clearIncludeFilters
public void clearIncludeFilters ()
Delete all the include filters currently tracked.
getExcludeFilters
public Set<String> getExcludeFilters ()
Returns the current Set of exclude filters.
| Returns | |
|---|---|
Set<String> |
|
getIncludeFilters
public Set<String> getIncludeFilters ()
Returns the current Set of include filters.
| Returns | |
|---|---|
Set<String> |
|
run
public final void run (TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
| Parameters | |
|---|---|
testInfo |
TestInformation: The TestInformation object containing useful information to run
tests. |
listener |
ITestInvocationListener: the ITestInvocationListener of test results |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-22 UTC.