From 896350c4232edd7858aa4ebbb4c3f5dc1bd0a3af Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Thu, 12 Oct 2023 01:32:35 +0200 Subject: [PATCH] backend: fix several failing tests See PR #2920 --- backend/copr-backend.spec | 2 +- backend/copr_backend/background_worker_build.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/copr-backend.spec b/backend/copr-backend.spec index e4ab4874c..6ed98c9a5 100644 --- a/backend/copr-backend.spec +++ b/backend/copr-backend.spec @@ -3,7 +3,7 @@ %endif %global prunerepo_version 1.20 -%global tests_version 4 +%global tests_version 5 %global tests_tar test-data-copr-backend %global copr_common_version 0.20.1.dev1 diff --git a/backend/copr_backend/background_worker_build.py b/backend/copr_backend/background_worker_build.py index d1f9a37d6..994c1430f 100644 --- a/backend/copr_backend/background_worker_build.py +++ b/backend/copr_backend/background_worker_build.py @@ -561,7 +561,7 @@ def _compress_logs(self): self.log.error("Compressed log %s exists", dest) continue - if not os.path.exists(src): + if not os.path.exists(src) and src == self.job.review_log: # fedora-review.log has a good chance of not existing # We should be ready for other similar files self.log.warning("Not trying to compress %s as it does not exist", src)