def test_live_install(self): """Check that live-install.tmpl is parsed correctly""" # A package for each arch to test for arch_pkg = { "aarch64": "shim-aa64", "arm": "grub2-efi-arm-cdboot", "armhfp": "grub2-efi-arm-cdboot", "x86_64": "shim-x64", "i386": "memtest86+", "ppc64le": "powerpc-utils", "s390x": "s390utils-base" } extra_pkgs = get_extra_pkgs(self.dbo, "./share/", "live-iso") self.assertTrue(len(extra_pkgs) > 0) # Results depend on arch arch = get_buildarch(self.dbo) self.assertTrue(arch_pkg[arch] in extra_pkgs)
def test_other_install(self): """Test that non-live doesn't parse live-install.tmpl""" extra_pkgs = get_extra_pkgs(self.dbo, "./share/", "qcow2") self.assertEqual(extra_pkgs, [])