Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-26 00:18:33 +00:00
parent 9c3f085aee
commit f717d6776b
4 changed files with 126 additions and 2 deletions

41
tldr/linux/tmt-run Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# tmt run
> Execute tmt test steps. By default, all steps are run.
> More information: <https://tmt.readthedocs.io/en/stable/overview.html#run>.
- Run all test steps for each plan:
`tmt run`
- Run only the discover step to show what tests would be run:
`tmt run discover -v`
- Run all steps and adjust the provision step options:
`tmt run --all provision --how {{container}} --image {{fedora:rawhide}}`
- Run only selected plans and tests:
`tmt run plan --name {{/plan/name}} test --name {{/test/name}}`
- Show results from the last run in a web browser:
`tmt run --last report --how {{html}} --open`
- Run tests with the provided context:
`tmt run --context {{key=value}} -c {{distro=fedora}}`
- Run tests interactively (debug test code in the middle of a test):
`tmt run --all execute --how {{tmt}} --interactive`
- Use dry mode to see what actions would happen and use the highest verbosity:
`tmt run --dry -vvv`