Update README adding how to run a specific test.

This commit is contained in:
Jun Aruga 2024-10-01 18:03:33 +02:00
commit fa42fa7ad2

View file

@ -35,3 +35,27 @@ Run the following command to see the report, setting the value of the above run
```
$ tmt run --id run-NNN report -vvv plans --default
```
#### Running a specific test
You can run a specific test.
List available tests.
```
$ tmt test ls
/Sanity/native-extension-gem-is-installed-without-error/ruby25
/Sanity/native-extension-gem-is-installed-without-error/ruby26
/Sanity/native-extension-gem-is-installed-without-error/ruby27
/Sanity/native-extension-gem-is-installed-without-error/ruby30
/Sanity/native-extension-gem-is-installed-without-error/ruby31
/Sanity/native-extension-gem-is-installed-without-error/system
/run-basic-rails-application
/systemtap-static-probes-in-ruby
```
Run the following command to run a specific test with `-n` option to specify a regular expression to match the test name for Fedora rawhide:
```
$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide plans --default tests -n '^/systemtap-static-probes-in-ruby$'
```