test/run/boot: migrate to a v2 manifest
This commit migrates the test to a brand new V2, F38-based manifest. It's actually based on osbuild-composer interpretation of the Fedora Cloud Base image.
This commit is contained in:
parent
cf00c5b214
commit
e4933b4fd6
4 changed files with 2022 additions and 1163 deletions
|
|
@ -26,8 +26,8 @@ class TestBoot(test.TestBase):
|
|||
|
||||
with self.osbuild as osb:
|
||||
with tempfile.TemporaryDirectory(dir="/var/tmp") as temp_dir:
|
||||
osb.compile_file(manifest, output_dir=temp_dir, exports=["assembler"])
|
||||
qcow2 = os.path.join(temp_dir, "assembler", "fedora-boot.qcow2")
|
||||
osb.compile_file(manifest, output_dir=temp_dir, exports=["image"])
|
||||
image = os.path.join(temp_dir, "image", "disk.img")
|
||||
output_file = os.path.join(temp_dir, "output")
|
||||
|
||||
subprocess.run(["qemu-system-x86_64",
|
||||
|
|
@ -45,7 +45,7 @@ class TestBoot(test.TestBase):
|
|||
"-device", "virtio-serial",
|
||||
"-device", "virtserialport,chardev=stdio",
|
||||
|
||||
qcow2],
|
||||
image],
|
||||
encoding="utf8",
|
||||
check=True)
|
||||
with open(output_file, "r", encoding="utf8") as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue