From 3733c55cd93f456386d8bb63489e72624e917093 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 #2920 --- backend/copr_backend/background_worker_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)