diff --git a/test/scripts/imgtestlib.py b/test/scripts/imgtestlib.py index 6731015517..882320b036 100644 --- a/test/scripts/imgtestlib.py +++ b/test/scripts/imgtestlib.py @@ -168,16 +168,6 @@ def gen_build_info_dir_path_prefix(osbuild_ref, runner_distro, distro=None, arch return path + "/" -def gen_build_info_dir_path(root, manifest_id): - """ - Generates the path to the directory that contains the build info. - This is a simple os.path.join() of the components, but ensures that paths are consistent. - """ - # NB: the last component is an empty string to ensure that the path ends with a separator to ensure convention - # with S3 paths. - return os.path.join(root, manifest_id, "") - - 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 65923397c1..08d939a996 100644 --- a/test/scripts/test_imgtestlib.py +++ b/test/scripts/test_imgtestlib.py @@ -163,11 +163,6 @@ def test_gen_build_info_s3_dir_path(kwargs, expected): assert testlib.gen_build_info_s3_dir_path(**kwargs) == expected -def test_path_generators(): - assert testlib.gen_build_info_dir_path("inforoot", "abc123") == \ - "inforoot/abc123/" - - test_container = "registry.gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/manifest-list-test" manifest_list_digest = "sha256:58150862447d05feeb263ddb7257bf11d2ce2a697362ac117de2184d10f028fc"