commit | bc7b61225c09625ee6b2f6b30dda952f32977125 | [log] [tgz] |
---|---|---|
author | Jim Tang <jimtang@google.com> | Mon Jan 06 14:23:29 2020 +0800 |
committer | Jim Tang <jimtang@google.com> | Mon Jan 06 15:46:00 2020 +0800 |
tree | ee1a24a0dfca3c0238affecc5fb4a3ec32bf7b13 | |
parent | 05b3080fa665becb0a68695981593f31a3d10a8b [diff] |
Atest: fix NoneType of atest_unittest.py. Running unit tests will seldom encounter flaky test failure: self.assertTrue(data_time) AssertionError: None is not true tempfile.mkdkdtemp() generates hashed filename which contains "_" so the previous parsing would be faulty when the string is YYYYMMDD_HHMM__<hash> Bug: 147202893 Test: source build/envsetup.sh; lunch croot tools/tradefederation/core/atest ./run_atest_unittests.sh ./atest_run_unittests.py Change-Id: I02d15d79765d94882b67f86b0c733a02ae357284
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.