Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various test improvement, especially for testing minimal templates #639

Merged
merged 15 commits into from
Dec 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests: support not installing extra packages for in-vm kernel tests
This makes sense for testing if in-vm kernel works out of the box in
selected templates.

QubesOS/qubes-issues#5212
marmarek committed Nov 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 163a6cdf47c499280d33f740998fe0ebd0530f09
7 changes: 7 additions & 0 deletions qubes/tests/integ/grub.py
Original file line number Diff line number Diff line change
@@ -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 && "