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

package info (click to toggle)
gtg 0.6-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,464 kB
  • sloc: xml: 20,785; python: 17,651; sh: 158; makefile: 93
file content (12 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Description: Exit with exit status code of pytest rather than ignoring result
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: not-needed, these have landed independently already
Last-Update: 2022-11-19
--- a/run-tests
+++ b/run-tests
@@ -38,4 +38,4 @@
     if len(sys.argv) == 1:
         sys.argv.append('tests')
 
-    pytest.main()
+    sys.exit(pytest.main())