commit | cc4f270b1b2fb6fe1abdbe62a3de54794dd2b92d | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Thu Apr 09 21:38:58 2020 +0100 |
committer | Nikita Ioffe <ioffe@google.com> | Fri Apr 10 21:49:42 2020 +0100 |
tree | 2785870f520422ba089eb3b9359954e4a0a54f7e | |
parent | e24558fdcdbafce6a68d02b84f5b2c762ba2ff0b [diff] |
RootTargetPreparer: add option to ignore failure and carry on with setup In some scenarios tests (e.g CtsInitTestCases, CtsFsMgrTestCases) are shared between different test suites (e.g. cts, vts) which means that some of the tests cases require root, while others don't. Adding an option to ignore failure of `adb root` will make it possible to run those tests on both user and userdebug builds via the same command (e.g. atest CtsInitTestCases). Test: locally added RootTargetPreparer to CtsInitTestCases Test: run atest CtsInitTestCases on aosp_blueline-user Test: run_tradefed_tests.sh Change-Id: I26d2b9785ebce29904ecbdd2358d2e354f78cab6
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.