test/assemblers: don't delete output in the store

To fix running the test multiple times with OSBUILD_TEST_STORE.
This commit is contained in:
Lars Karlitski 2019-12-18 10:08:02 +01:00
parent e7c939b9e1
commit f09a0c2a69

View file

@ -90,7 +90,7 @@ class TestAssemblers(osbuildtest.TestCase):
tree_id, output_id = self.run_assembler("org.osbuild.qemu", options)
image = f"{self.store}/refs/{output_id}/image.{fmt}"
if fmt == "raw.xz":
subprocess.run(["unxz", image], check=True)
subprocess.run(["unxz", "--keep", "--force", image], check=True)
image = image[:-3]
fmt = "raw"
self.assertImageFile(image, fmt, options["size"])