Same hostname check should consider prefix properly.

The same hostname check didn't consider host should not be
hostname.mtv's prefix case. Though in our lab all the hostnames have
same length, this never happened.

Test: unit test.
Bug: 178675376
Merged-In: Id7842f6fcd75f8df5a6b0e938bf7fee311137129
Change-Id: Id7842f6fcd75f8df5a6b0e938bf7fee311137129
2 files changed
tree: f736da4a82e7ed7c59897f5f97d8982ab286004f
  1. clearcut_client/
  2. common_util/
  3. device_build_interfaces/
  4. global_configuration/
  5. invocation_interfaces/
  6. isolation/
  7. lite/
  8. proto/
  9. reference_tests/
  10. remote/
  11. res/
  12. src/
  13. test_framework/
  14. test_result_interfaces/
  15. tests/
  16. util-apps/
  17. .classpath
  18. .gitignore
  19. .project
  20. Android.bp
  21. Android.mk
  22. aosp_sha.sh
  23. atest_tradefed.sh
  24. CleanSpec.mk
  25. error_prone_rules.mk
  26. MANIFEST.mf
  27. OWNERS
  28. PREUPLOAD.cfg
  29. pylintrc
  30. README.md
  31. run_tf_cmd.sh
  32. script_help.sh
  33. TEST_MAPPING
  34. tradefed.sh
  35. tradefed_win.bat
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

Getting Code Reviewed

1. Create your change in Gerrit
2. Add the reviewer named "Tradefed Codereview" (email: tradefed-codereview@tradefederation.google.com.iam.gserviceaccount.com)
3. Review the code review guidance at go/tf-guidelines and go/tradefed-code-reviews
4. GWSQ should add a couple of people from the team to review your code and give feedback.

More information

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.