File: return-exit-status-in-tests.patch

package info (click to toggle)
gtg 0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,492 kB
  • sloc: xml: 20,785; python: 17,657; sh: 158; makefile: 93
file content (20 lines) | stat: -rw-r--r-- 562 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Nilesh Patra <nilesh@debian.org>
Date: Tue, 1 Apr 2025 17:44:11 -0300
Subject: Exit with exit status code of pytest rather than ignoring result

Forwarded: not-needed, these have landed independently already
Last-Update: 2022-11-19
---
 run-tests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run-tests b/run-tests
index b8d1bc2..1dc45ec 100755
--- a/run-tests
+++ b/run-tests
@@ -38,4 +38,4 @@ if __name__ == "__main__":
     if len(sys.argv) == 1:
         sys.argv.append('tests')
 
-    pytest.main()
+    sys.exit(pytest.main())