From 163a6cdf47c499280d33f740998fe0ebd0530f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 30 Nov 2024 15:10:50 +0100 Subject: [PATCH] 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 --- qubes/tests/integ/grub.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qubes/tests/integ/grub.py b/qubes/tests/integ/grub.py index 9acde4060..bcbea77af 100644 --- a/qubes/tests/integ/grub.py +++ b/qubes/tests/integ/grub.py @@ -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 && "