#1785 backend: new fixture for testing prunerepo
Closed 2 years ago by praiskup. Opened 2 years ago by praiskup.
Unknown source testing-prunerepo  into  main

file modified
+1 -1
@@ -2,7 +2,7 @@

  %global _pkgdocdir %{_docdir}/%{name}-%{version}

  %endif

  

- %global tests_version 1

+ %global tests_version 2

  %global tests_tar test-data-copr-backend

  

  Name:       copr-backend

file modified
+15
@@ -129,3 +129,18 @@

          os.mkdir(chdir)

          shutil.copy(source, chdir)

      yield ctx

+ 

+ 

+ @fixture

+ def f_builds_to_prune(f_empty_repos):

+     """

+     Prepare repositories to test prunerepo.

+     """

+     ctx = f_empty_repos

+     source = os.path.join(os.environ["TEST_DATA_DIRECTORY"],

+                           "to_prune")

+     for chroot in ctx.chroots:

+         chdir = os.path.join(ctx.empty_dir, chroot)

+         shutil.rmtree(chdir)

+         shutil.copytree(source, chdir)

+     yield ctx

no initial comment

Build succeeded.

rebased onto 874afc2

2 years ago

Build succeeded.

Pull-Request has been closed by praiskup

2 years ago

Pull-Request has been reopened by praiskup

2 years ago

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

Pull-Request has been closed by praiskup

2 years ago