File: fatal_test_failures.patch

package info (click to toggle)
pyyaml 6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,120 kB
  • sloc: python: 7,114; makefile: 53; sh: 36; ansic: 8
file content (27 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (2)
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
From: Scott Kitterman <scott@kitterman.com>
Date: Fri, 8 Oct 2021 20:15:25 +0000
Subject: Patch upstream test system to make test failures fatal

Bug-Debian: https://bugs.debian.org/918893
Origin: vendor
Forwarded: not-needed
Last-Update: 2020-04-15
---
 tests/lib/test_appliance.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/test_appliance.py b/tests/lib/test_appliance.py
index 0c5cda1..c07a1a5 100644
--- a/tests/lib/test_appliance.py
+++ b/tests/lib/test_appliance.py
@@ -112,8 +112,10 @@ def display(results, verbose):
     sys.stdout.write('TESTS: %s\n' % total)
     if failures:
         sys.stdout.write('FAILURES: %s\n' % failures)
+        sys.exit(1)
     if errors:
         sys.stdout.write('ERRORS: %s\n' % errors)
+        sys.exit(1)
     return not (failures or errors)
 
 def run(collections, args=None):