diff --git a/README.md b/README.md index d2a6e4b..61a0ded 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ $ sudo dnf install tmt+all Run the following command to run the tests for Fedora rawhide: ``` -$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide plans --default +$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide /var/tmp/tmt/run-NNN ... ``` @@ -33,7 +33,7 @@ The tmt's provisioning method virtual (`tmt run provision -h virtual`) must be u Run the following command to see the report, setting the value of the above run ID to the `--id` option. As this repository doesn't have tmt's plans to run the tests, we need to set the `plans --default` to use the default plans. See [this tmt's document](https://tmt.readthedocs.io/en/stable/stories/cli.html#report) about the `tmt run report` options. ``` -$ tmt run --id run-NNN report -vvv plans --default +$ tmt run --id run-NNN report -vvv ``` #### Running a specific test @@ -57,5 +57,5 @@ $ tmt test ls 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$' +$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide tests -n '^/systemtap-static-probes-in-ruby$' ``` diff --git a/plans.fmf b/plans.fmf index f5deb36..da1559b 100644 --- a/plans.fmf +++ b/plans.fmf @@ -5,8 +5,23 @@ execute: how: tmt /modified: + summary: Run only modified tests in CI. + enabled: false + adjust: + # https://tmt.readthedocs.io/en/stable/spec/context.html#trigger + - when: trigger == commit + enabled: true discover: how: fmf modified-only: true modified-ref: reference/main modified-url: https://src.fedoraproject.org/tests/ruby + +/all: + summary: Run all the tests. + adjust: + # Don't trigger this plan in CI. + - when: trigger == commit + enabled: false + discover: + how: fmf