Skip to content

Commit

Permalink
Test/imgtestlib: delete gen_build_info_dir_path()
Browse files Browse the repository at this point in the history
The function is no longer used by any code, delete it.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
  • Loading branch information
thozza committed Jan 9, 2025
1 parent eb22191 commit 6991da9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions test/scripts/imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions test/scripts/test_imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6991da9

Please sign in to comment.