From ace0a6887dd4a7fed9bd5006553d7164e8af6828 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Mar 04 2022 14:06:21 +0000 Subject: Update virtualization tips and the execute method The `beakerlib` method has been obsoleted and the virtualization hints are nicely documented in upstream documentation, no need to duplicate here. --- diff --git a/modules/ROOT/pages/tmt.adoc b/modules/ROOT/pages/tmt.adoc index 7eaf091..0f770b3 100644 --- a/modules/ROOT/pages/tmt.adoc +++ b/modules/ROOT/pages/tmt.adoc @@ -141,7 +141,7 @@ Update summary as needed, keep discover method to `fmf` and choose whether tests discover: how: fmf execute: - how: beakerlib + how: tmt === Shell Test === @@ -273,7 +273,7 @@ Update the repository url to point to the right place: how: fmf url: https://github.com/psss/tmt execute: - how: beakerlib + how: tmt Now you will be able to run tests from the remote repository. See the https://tmt.readthedocs.io/en/latest/spec/steps.html#discover[discover] step documentation for details. @@ -368,23 +368,9 @@ A slightly extended example with custom test and plan template and executing tes === Virtualization Tips === -Here's just a couple of hints how to get the virtualization quickly working on your laptop. -See the https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/[Getting started with virtualization] docs to learn more. - -Make sure libvirtd is running: - - sudo systemctl start libvirtd - -Add your user account to the libvirt group. - - sudo usermod -a -G libvirt $USER - -You might need to restart your desktop session to get it fully working. -Or at least start a new login shell: - - su - $USER - -Here you can find vm https://kojipkgs.fedoraproject.org/compose/[images for download]. +In order to safely run tests under a virtual machine started on your laptop you only need to install the `tmt-provision-virtual` package. +By default the session connection is used so no other steps should be needed, just execute tests using the `tmt run` command. +See the upstream https://tmt.readthedocs.io/en/stable/questions.html#virtualization-tips[Virtualization Tips] for more options. == More Info ==