diff --git a/test/test_build.py b/test/test_build.py index 052be0f3..157e34c2 100644 --- a/test/test_build.py +++ b/test/test_build.py @@ -405,6 +405,8 @@ def build_images(shared_tmpdir, build_container, request, force_aws_upload, gpg_ "-v", "/var/tmp/osbuild-test-store:/store", # share the cache between builds "-v", "/var/lib/containers/storage:/var/lib/containers/storage", # mount the host's containers storage ] + if tc.podman_terminal: + cmd.append("-t") if tc.sign: sign_container_image(gpg_conf, registry_conf, tc.container_ref) @@ -430,6 +432,8 @@ def build_images(shared_tmpdir, build_container, request, force_aws_upload, gpg_ f"--use-librepo={tc.use_librepo}", *tc.bib_rootfs_args() ]) + if tc.podman_terminal: + cmd.append("--progress=term") # print the build command for easier tracing print(" ".join(cmd)) diff --git a/test/testcases.py b/test/testcases.py index 5a9ac03c..a5ab3225 100644 --- a/test/testcases.py +++ b/test/testcases.py @@ -27,6 +27,8 @@ class TestCase: disk_config: str = "" # use librepo for the downloading use_librepo: bool = False + # podman_terminal enables the podman -t option to get progress + podman_terminal: bool = False def bib_rootfs_args(self): if self.rootfs: @@ -61,6 +63,7 @@ class TestCaseC9S(TestCase): "BIB_TEST_BOOTC_CONTAINER_TAG", "quay.io/centos-bootc/centos-bootc:stream9") use_librepo: bool = True + podman_terminal: bool = True @dataclasses.dataclass