Skip to content

Commit

Permalink
Test/imgtestlib: delete gen_build_info_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 8494b30 commit eb22191
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions test/scripts/imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions test/scripts/test_imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eb22191

Please sign in to comment.