test/ostree: build the ostree raw image
Build the newly included fedora ostree image artifact. This should test the new devices and mounts.
This commit is contained in:
parent
8a7596c691
commit
97ff9eb780
1 changed files with 11 additions and 0 deletions
|
|
@ -40,3 +40,14 @@ class TestOSTree(test.TestBase):
|
||||||
|
|
||||||
bootiso = os.path.join(temp_dir, "bootiso", "fedora-ostree-boot.iso")
|
bootiso = os.path.join(temp_dir, "bootiso", "fedora-ostree-boot.iso")
|
||||||
self.assertTrue(os.path.exists(bootiso))
|
self.assertTrue(os.path.exists(bootiso))
|
||||||
|
|
||||||
|
# build a qemu image
|
||||||
|
manifest = os.path.join(self.locate_test_data(),
|
||||||
|
"manifests/fedora-ostree-image.json")
|
||||||
|
osb.compile_file(manifest,
|
||||||
|
output_dir=temp_dir,
|
||||||
|
checkpoints=["build", "ostree-tree", "ostree-commit"],
|
||||||
|
exports=["qcow2"])
|
||||||
|
|
||||||
|
bootiso = os.path.join(temp_dir, "qcow2", "disk.qcow2")
|
||||||
|
self.assertTrue(os.path.exists(bootiso))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue