This commit switches the default repositories to use the build-in ones from images PR#1112. It is still possible to override using `/etc/image-builder` and `/usr/share/image-builder` or `--datadir`. This is implicitly tested via the container test that no longer includes the files from osbuild-composer in the container.
17 lines
411 B
Python
17 lines
411 B
Python
import subprocess
|
|
|
|
import pytest
|
|
|
|
|
|
# XXX: copied from bib
|
|
@pytest.fixture(name="build_container", scope="session")
|
|
def build_container_fixture():
|
|
"""Build a container from the Containerfile and returns the name"""
|
|
|
|
container_tag = "image-builder-cli-test"
|
|
subprocess.check_call([
|
|
"podman", "build",
|
|
"-f", "Containerfile",
|
|
"-t", container_tag,
|
|
])
|
|
return container_tag
|