Add onTestEnd with test description

To add log files with names that references the test name, it's
necessary to add a TestDirection argument to the onTestEnd function. By
default, the original definition of onTestEnd will be used. If the
version of onTestEnd with a TestDescription is overridden, the other
overloaded definition will be ignored.

Bug: 134790621
Test: tradefed.sh run commandAndExit host \
--class com.android.tradefed.device.metric.BaseDeviceMetricCollectorTest \
--method testOnTestEndWithTestDescription -l verbose
Change-Id: Ia748d5c073fcd00b2f29821c2d722d5b4c56ee9a
Signed-off-by: Maggie White <maggiewhite@google.com>
3 files changed
tree: 4c732d2ba786ca54d1cee116e9a09772373d3fa1
  1. atest/
  2. clearcut_client/
  3. common_util/
  4. proto/
  5. python-lib/
  6. remote/
  7. res/
  8. src/
  9. tests/
  10. util-apps/
  11. .classpath
  12. .gitignore
  13. .project
  14. Android.bp
  15. Android.mk
  16. atest_tradefed.sh
  17. CleanSpec.mk
  18. error_prone_rules.mk
  19. MANIFEST.mf
  20. OWNERS
  21. PREUPLOAD.cfg
  22. pylintrc
  23. README.md
  24. run_tf_cmd.sh
  25. script_help.sh
  26. TEST_MAPPING
  27. TEST_MAPPING_README
  28. tradefed.sh
  29. tradefed_win.bat
  30. verify.sh
README.md

Trade Federation (TF / Tradefed)

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:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

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