From 6db24d3eafadd665f0f35b1f9bf241e160e7fd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 11 Nov 2020 05:57:49 +0100 Subject: [PATCH] tests: add PVH grub2 tests --- qubes/tests/integ/grub.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qubes/tests/integ/grub.py b/qubes/tests/integ/grub.py index 285f4da7..1fb9a775 100644 --- a/qubes/tests/integ/grub.py +++ b/qubes/tests/integ/grub.py @@ -158,6 +158,12 @@ class TC_41_HVMGrub(GrubBase): virt_mode = 'hvm' kernel = None +@unittest.skipUnless(os.path.exists('/var/lib/qubes/vm-kernels/pvgrub2-pvh'), + 'grub2-xen-pvh package not installed') +class TC_42_PVHGrub(GrubBase): + virt_mode = 'pvh' + kernel = 'pvgrub2-pvh' + def create_testcases_for_templates(): yield from qubes.tests.create_testcases_for_templates('TC_40_PVGrub', TC_40_PVGrub, qubes.tests.SystemTestCase, @@ -165,6 +171,9 @@ def create_testcases_for_templates(): yield from qubes.tests.create_testcases_for_templates('TC_41_HVMGrub', TC_41_HVMGrub, qubes.tests.SystemTestCase, module=sys.modules[__name__]) + yield from qubes.tests.create_testcases_for_templates('TC_42_PVHGrub', + TC_42_PVHGrub, qubes.tests.SystemTestCase, + module=sys.modules[__name__]) def load_tests(loader, tests, pattern): tests.addTests(loader.loadTestsFromNames(