Linux command
tmt-try 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Experiment
tmt try
Example
cd [path/to/test_directory] && tmt try
Example
tmt try [rhel-9]
Example
tmt try [fedora@container]
Filter
tmt try -t [feature]
Example
tmt try -a
Example
tmt try -l
说明
tmt try provides quick experimentation with tests and environments. It simplifies the process of provisioning test environments and running tests interactively. The command can detect tests in the current directory and run them in specified environments. It supports various operating system images and provisioning methods including containers and virtual machines.
参数
- -t, --test _PATTERN_
- Select tests matching pattern
- -a, --ask
- Provision guest and wait for instructions
- -l, --login
- Directly log into the guest without asking
- --help
- Display help information
FAQ
What is the tmt-try command used for?
tmt try provides quick experimentation with tests and environments. It simplifies the process of provisioning test environments and running tests interactively. The command can detect tests in the current directory and run them in specified environments. It supports various operating system images and provisioning methods including containers and virtual machines.
How do I run a basic tmt-try example?
Run `tmt try` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t, --test _PATTERN_ do in tmt-try?
Select tests matching pattern