commit | bb9689df47b74c6f10ebc1667563fafa0f998261 | [log] [tgz] |
---|---|---|
author | Dan Shi <dshi@google.com> | Fri Sep 27 13:56:42 2019 -0700 |
committer | Dan Shi <dshi@google.com> | Fri Sep 27 13:56:42 2019 -0700 |
tree | 5fabd0e3e6100b4e0d98ae9dbe85d2baeac1b4e7 | |
parent | 82f780384e714953336a417ef34b43ec178a19f9 [diff] |
Force Test Mapping and atest run to unroot device before running tests Test Mapping has other target preparers that may leave the device as root and run tests as root user. atest, on the other hand, doesn't enforce device root status before the test run. If a native test has test config without specifying RootTargetPreparer, such behavior difference can cause confusion that the native test may fail locally through atest if the device is unroot, while a presubmit run shows the test can run as root. Note that a native test with auto-generated test config won't have such problem, since auto-generated test config for cc_test and cc_benchmark will guarantee to have RootTargetPreparer. Bug: 141761471 Test: atest run Change-Id: If88c3da54705ddb12af3ef41299eb5b32aea744f
TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.
Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.
Building TF:
More information at: https://source.android.com/devices/tech/test_infra/tradefed/
See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture
If you are a tests writer you should start looking in the test_framework/ component which contains everything needed to write a tests in Tradefed.