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 1266acb commit 163a6cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qubes/tests/integ/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ 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 163a6cd

Please sign in to comment.