自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
Tradefed 主机选项
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Tradefed (TF) 中的主机选项指的是在主机级别(一个 TF 实例)应用的选项,这些选项会影响自动化测试框架本身的行为。这些选项通常不会影响测试本身,而是支持自动化测试框架提供的操作。
主机选项定义了一系列选项,以便自定义 TF 行为,例如:
- 可以同时刷写多少设备。这对资源有限的物理主机很有用。
- 应将文件下载到的目录。如果任何原因导致默认临时文件夹不是正确的位置,可以对其进行更改。
详细了解全局配置。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-26。"],[],[],null,["# Tradefed host options\n\nHost options in Tradefed (TF) refer to options that are applied at the host\nlevel (one TF instance), and affect the behavior of the harness itself. These\noptions usually don't affect tests themselves but rather support operations the\nharness provides.\n\n[Host options](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/global_configuration/com/android/tradefed/host/HostOptions.java)\ndefine a range of options that allows customization of TF behavior, such as:\n\n- How many devices can be flashed concurrently. This is useful for physical hosts with limited resources.\n- The directory files should be downloaded to. If the default temporary folder isn't the right place for any reason, it's possible to change it.\n\n[Read more about global\nconfiguration](/docs/core/tests/tradefed/architecture/advanced/global-config)."]]