From 673030c879733c92cbcbf7c07294cc0a5d8b573e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 9 Aug 2023 14:40:55 +0200 Subject: [PATCH] Use get_image_id_from_iidfile to handle old podman versions --- tests/test_all.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_all.py b/tests/test_all.py index f9fa1425..bd3be6f4 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -223,8 +223,7 @@ def test_certificates_are_present( f"{' '.join(container_runtime.build_command + get_extra_build_args(pytestconfig))} " f"--iidfile={iidfile} {tmp_path}", ) - with open(iidfile, "r", encoding="utf-8") as id_f: - _, img_id = id_f.read().strip().split(":") + img_id = container_runtime.get_image_id_from_iidfile(iidfile) host.run_expect( [0],