commit | f9e987cf69e3190ef7e2e9793eda7afb64967e52 | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Sat Mar 07 18:59:28 2020 +0800 |
committer | JW Wang <wangchun@google.com> | Sun Mar 15 09:50:29 2020 +0800 |
tree | aa31bbf7b99f9d8769342c12c8abe0cc30b9af65 | |
parent | f343db5337de468d1363123114c0c47c8e24d199 [diff] |
Retry when `Permission denied` is returned (2/n) My test shows that with one more retry, the external storage will be mounted correctly in most cases even when 'Permission denied' is returned previously. See b/150749023#comment3 for more details. This will reduce the chance of unnecessary recovery/reboot due to failed #waitForStoreMount and greatly improve the steadiness of host side tests. Note retryOnPermissionDenied is set to 1 so we won't retry endlessly to impact the boot tests. testWaitForStoreMount_PermDenied is also modified to check if 'retryOnPermissionDenied' works correctly. Bug: 150749023 Test: atest StagedRollbackTest#testBadApkOnly Test: tradefed unit tests Change-Id: I651ad8021b880f269f5e2d596a8d79679429164a
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.