From eb22191f543c96c98dbfbfd85bc923042aad8626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Tue, 7 Jan 2025 13:19:32 +0100 Subject: [PATCH] Test/imgtestlib: delete gen_build_info_path() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function is no longer used by any code, delete it. Signed-off-by: Tomáš Hozza --- test/scripts/imgtestlib.py | 8 -------- test/scripts/test_imgtestlib.py | 2 -- 2 files changed, 10 deletions(-) diff --git a/test/scripts/imgtestlib.py b/test/scripts/imgtestlib.py index 0c6c75b375..6731015517 100644 --- a/test/scripts/imgtestlib.py +++ b/test/scripts/imgtestlib.py @@ -178,14 +178,6 @@ def gen_build_info_dir_path(root, manifest_id): return os.path.join(root, manifest_id, "") -def gen_build_info_path(root, manifest_id): - """ - Generates the path to the info.json. - This is a simple os.path.join() of the components, but ensures that paths are consistent. - """ - return os.path.join(gen_build_info_dir_path(root, manifest_id), "info.json") - - def gen_build_info_s3_dir_path(osbuild_ref, runner_distro, distro=None, arch=None, manifest_id=None): """ Generates the s3 URL for the location where build info and artifacts will be stored for a specific diff --git a/test/scripts/test_imgtestlib.py b/test/scripts/test_imgtestlib.py index e060e9b6a0..65923397c1 100644 --- a/test/scripts/test_imgtestlib.py +++ b/test/scripts/test_imgtestlib.py @@ -166,8 +166,6 @@ def test_gen_build_info_s3_dir_path(kwargs, expected): def test_path_generators(): assert testlib.gen_build_info_dir_path("inforoot", "abc123") == \ "inforoot/abc123/" - assert testlib.gen_build_info_path("inforoot", "abc123") == \ - "inforoot/abc123/info.json" test_container = "registry.gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/manifest-list-test"