Selaa lähdekoodia

tests: add PVH grub2 tests

Marek Marczykowski-Górecki 3 vuotta sitten
vanhempi
commit
6db24d3eaf
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      qubes/tests/integ/grub.py

+ 9 - 0
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(