File: 0004-Revert-system-tests-abort-on-failure.patch

package info (click to toggle)
aptly 1.6.2-1~bpo13%2B1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-backports
  • size: 49,928 kB
  • sloc: python: 10,398; sh: 252; makefile: 184
file content (38 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: =?utf-8?q?S=C3=A9bastien_Delafond?= <seb@debian.org>
Date: Wed, 24 Sep 2025 07:23:24 +0200
Subject: Revert "system-tests: abort on failure"

We'd rather have the test suite always run completely, and report
every failed test at the end.
---
 system/run.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/system/run.py b/system/run.py
index 4e73fb2..599afe5 100755
--- a/system/run.py
+++ b/system/run.py
@@ -50,7 +50,6 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
     if not coverage_dir:
         coverage_dir = mkdtemp(suffix="aptly-coverage")
 
-    failed = False
     for test in tests:
         orig_stdout = sys.stdout
         orig_stderr = sys.stderr
@@ -158,15 +157,8 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
 
                 t.shutdown()
 
-                if failed:
-                    break
-            if failed:
-                break
-
         sys.stdout = orig_stdout
         sys.stderr = orig_stderr
-        if failed:
-            break
 
     if lastBase is not None:
         lastBase.shutdown_class()