ostree: Add unified core mode for compose in rpm-ostree

rpm-ostree is moving to unified core composes and this is now working
for Silverblue & Kinoite.

This is untested for IoT but they should move to os-build with Fedora
37.

See: https://github.com/coreos/rpm-ostree/issues/729
Merges: https://pagure.io/pungi/pull-request/1626
Signed-off-by: Timothée Ravier <tim@siosm.fr>
This commit is contained in:
Timothée Ravier 2022-08-19 23:21:36 +02:00 committed by Lubomír Sedlář
parent 11fa342507
commit 603c61a033
8 changed files with 33 additions and 0 deletions

View file

@ -238,6 +238,22 @@ class OstreeTreeScriptTest(helpers.PungiTestCase):
self.assertCorrectCall(run, extra_args=["--force-nocache"])
@mock.patch("kobo.shortcuts.run")
def test_unified_core(self, run):
helpers.touch(os.path.join(self.repo, "initialized"))
ostree.main(
[
"tree",
"--repo=%s" % self.repo,
"--log-dir=%s" % os.path.join(self.topdir, "logs", "Atomic"),
"--treefile=%s/fedora-atomic-docker-host.json" % self.topdir,
"--unified-core",
]
)
self.assertCorrectCall(run, extra_args=["--unified-core"])
@mock.patch("kobo.shortcuts.run")
def test_extra_config_with_extra_repos(self, run):
configdir = os.path.join(self.topdir, "config")