2025-03-14 21:59:59 -06:00
|
|
|
# tmt try
|
|
|
|
|
|
|
|
|
|
> Quickly experiment with tests and environments.
|
|
|
|
|
> More information: <https://tmt.readthedocs.io/en/stable/stories/cli.html#try>.
|
|
|
|
|
|
|
|
|
|
- Quickly experiment with the default provision method (no tests in the CWD):
|
|
|
|
|
|
|
|
|
|
`tmt try`
|
|
|
|
|
|
|
|
|
|
- Run a test in the current working directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`cd {{path/to/test_directory}} && tmt try`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Use a specific operating system:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`tmt try {{rhel-9}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Select both custom image and provision method:
|
|
|
|
|
|
|
|
|
|
`tmt try {{fedora@container}}`
|
|
|
|
|
|
|
|
|
|
- Select tests with custom filter:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`tmt try {{[-t|--test]}} {{feature}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Provision guest and wait for instructions:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`tmt try {{[-a|--ask]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Directly log into the guest without asking:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`tmt try {{[-l|--login]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`tmt try --help`
|