commit | 848a7d1d448a70f186acf204eead4942a969180b | [log] [tgz] |
---|---|---|
author | yangbill <yangbill@google.com> | Tue Sep 04 19:12:08 2018 +0800 |
committer | yangbill <yangbill@google.com> | Thu Sep 13 10:17:00 2018 +0800 |
tree | 6d7034e667bdfa79f7a82f2607281ff482e49b31 | |
parent | 231379e9edf9eb55d01a0ff8ed230c10c619c947 [diff] |
ATest: Exit code implementation ATest's exit code should be non-zero if test result not pass or exception happened. But currently it won't care the result of the tests be run. Bug: 72876026 Test: unset ATEST_OLD_OUTPUT ; adb root ; atest net_test_bta (Exit Code 0) unset ATEST_OLD_OUTPUT ; adb unroot ; atest net_test_bta (Exit Code 5) export ATEST_OLD_OUTPUT=1 ; adb unroot ; atest net_test_bta (Exit Code 0) export ATEST_OLD_OUTPUT=1 ; adb root ; atest net_test_bta (Exit Code 0) atest performance/app-transitions (Exit Code 0) atest app/launch (Exit Code 5) atest RunBluetoothRoboTests (Exit Code 0) atest VtsCodelabHelloWorldTest (Exit Code 0) atest RunBluetoothRoboTests CarMessengerRoboTests (Exit Code 0) Change-Id: Iba71b33ef5243ec9cce4b1d2df82bb15c6b52a7f
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/