You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: Update fmf plan to add a separate job to prepare managed nodes
* Add a preparation job to run on managed nodes
* Update instructions to run tests locally
* From tft workflow, remove condition for commenter author_association.
This would require us to add all trusted users, running workflow is not dangerous.
* Keep the plan minimal, only run prep steps required to install beakerlib
Signed-off-by: Sergei Petrosian <[email protected]>
Copy file name to clipboardExpand all lines: plans/README-plans.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,10 @@ You can run tests locally with the `tmt try` cli.
21
21
22
22
### Running Tests Locally
23
23
24
-
For now, this functionality requires you to push changes to a PR because the plan only runs from the main branch, or from the PR branch.
25
-
So this is WIP.
24
+
To run tests locally, in the role repository, enter `tmt try -p plans/general <platform>`.
26
25
27
-
To run tests locally, in the role repository, enter `tmt run plans --name plans/general <platform>`.
28
-
Where `<platform>` is the name of the platform you want to run tests against.
26
+
This command identifies the plans/general plan and provisions two local VMs, one used as an Ansible control node, and second used as a managed node.
29
27
30
-
For example, `tmt run plans --name plans/general Fedora-40`.
28
+
tmt try is in development and does not identify tests from URL automatically, so after provisioning the machines, you must type `t`, `p`, `t` from the interactive prompt to identify tests, run preparation steps, and run the tests.
31
29
32
-
This command identifies the plans/general plan and provisions two machines, one used as an Ansible control node, and second used as a managed node.
33
-
34
-
You can also use `tmt try` to get to an interreactive prompt and be able to ssh into test machines.
35
-
You must run `tmt try -p plans/general Fedora-40`, and the in the promt type `p` to prepare the machines, then `t` to run the tests.
30
+
You can modify environment variables in `plans/general.fmf` to, e.g. run only specified test playbooks by overwriting `SYSTEM_ROLES_ONLY_TESTS`.
0 commit comments