Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend: update tests to work with new test-data tarball #2822

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/copr-backend.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%endif

%global prunerepo_version 1.20
%global tests_version 2
%global tests_version 3
%global tests_tar test-data-copr-backend

%global copr_common_version 0.16.4.dev
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def f_third_build(f_second_build):
Same as ``f_second_build``, but one more build.
"""
ctx = f_second_build
source = os.path.join(os.environ["TEST_DATA_DIRECTORY"],
"build_results", "00848963-example",
source = os.path.join(os.environ["TEST_DATA_DIRECTORY"], "build_results",
"fedora-30-x86_64", "00848963-example",
"example-1.0.14-1.fc30.x86_64.rpm")
build = '00000003-example'
ctx.builds.append(build)
Expand Down
3 changes: 2 additions & 1 deletion backend/tests/testlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def _full_source_path(self, src):
def rsync_download(self, src, dest, logfile=None, max_retries=0):
data = os.environ["TEST_DATA_DIRECTORY"]
trail_slash = src.endswith("/")
src = os.path.join(data, "build_results", "00848963-example")
src = os.path.join(data, "build_results", "fedora-30-x86_64",
"00848963-example")
if trail_slash:
src = src + "/"

Expand Down