mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

The pages translated are from PR [14921][01]. [01]: https://github.com/tldr-pages/tldr/pull/14921 Signed-off-by: Huanian Li <idorax@126.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
36 lines
685 B
Markdown
36 lines
685 B
Markdown
# tmt try
|
|
|
|
> 测试及环境快速上手。
|
|
> 更多信息:<https://tmt.readthedocs.io/en/stable/stories/cli.html#try>.
|
|
|
|
- 快速尝试默认的测试环境配置方法(当前工作目录中没有测试):
|
|
|
|
`tmt try`
|
|
|
|
- 在当前的工作目录中运行一个测试:
|
|
|
|
`cd {{path/to/test}} && tmt try`
|
|
|
|
- 使用特定的操作系统:
|
|
|
|
`tmt try {{fedora-41}}`
|
|
|
|
- 选择定制的镜像和测试环境配置方法:
|
|
|
|
`tmt try {{fedora@container}}`
|
|
|
|
- 根据定制的筛选条件选择测试:
|
|
|
|
`tmt try --test {{feature}}`
|
|
|
|
- 配置客户机并等待用户输入指令:
|
|
|
|
`tmt try --ask`
|
|
|
|
- 直接登录到客户机:
|
|
|
|
`tmt try --login`
|
|
|
|
- 显示帮助:
|
|
|
|
`tmt try --help`
|