Skip to content

Commit

Permalink
backend: update tests to work with new test-data tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX authored and praiskup committed Jul 24, 2023
1 parent e9385d3 commit 81e1815
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit 81e1815

Please sign in to comment.