Skip to content

Commit

Permalink
tests: support not installing extra packages for in-vm kernel tests
Browse files Browse the repository at this point in the history
This makes sense for testing if in-vm kernel works out of the box in
selected templates.

QubesOS/qubes-issues#5212
  • Loading branch information
marmarek committed Nov 30, 2024
1 parent 39cb173 commit 003ccae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qubes/tests/integ/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def setUp(self):
)

def install_packages(self, vm):
if os.environ.get("QUBES_TEST_SKIP_KERNEL_INSTALL") == "1":
return
else:
print("Installing kernel packages, you can skip by setting "
"QUBES_TEST_SKIP_KERNEL_INSTALL=1 in environment")
if self.template.startswith("fedora-"):
cmd_install1 = (
"dnf clean expire-cache && "
Expand Down

0 comments on commit 003ccae

Please sign in to comment.