[Python-modules-commits] [django-sitetree] 03/07: Add patch by Chris Lamb to unmask exit code in runtests.py (Closes: #877321).

Michael Fladischer fladi at moszumanska.debian.org
Mon Dec 11 16:42:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch debian/master
in repository django-sitetree.

commit 9ed75d0b1a4d2e527474bd811b5e002a82d890f4
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Mon Dec 11 17:31:44 2017 +0100

    Add patch by Chris Lamb to unmask exit code in runtests.py (Closes: #877321).
---
 debian/changelog                                   |  2 ++
 ...-Do-not-mask-test-failures-in-runtests.py.patch | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 033b715..5d68d4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 django-sitetree (1.8.0+dfsg-2) UNRELEASED; urgency=medium
 
   * Refresh patches after git-dpm to gbp pq conversion
+  * Add patch by Chris Lamb to unmask exit code in runtests.py (Closes:
+    #877321).
 
  -- Michael Fladischer <fladi at debian.org>  Mon, 11 Dec 2017 15:03:43 +0100
 
diff --git a/debian/patches/0002-Do-not-mask-test-failures-in-runtests.py.patch b/debian/patches/0002-Do-not-mask-test-failures-in-runtests.py.patch
new file mode 100644
index 0000000..78f44ab
--- /dev/null
+++ b/debian/patches/0002-Do-not-mask-test-failures-in-runtests.py.patch
@@ -0,0 +1,24 @@
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Mon, 11 Dec 2017 15:05:42 +0100
+Subject: Do not mask test failures in runtests.py.
+
+Author: Chris Lamb <lamby at debian.org>
+Forwarded: https://github.com/idlesign/django-sitetree/pull/240
+Bug: 877321
+---
+ sitetree/runtests.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/sitetree/runtests.py b/sitetree/runtests.py
+index be464ba..0ff3aff 100755
+--- a/sitetree/runtests.py
++++ b/sitetree/runtests.py
+@@ -1,5 +1,7 @@
+ #! /usr/bin/env python
+ 
++import sys
++
+ if __name__ == '__main__':
+     from pytest import main as pytest_main
+-    pytest_main()
++    sys.exit(pytest_main())
diff --git a/debian/patches/series b/debian/patches/series
index 46884be..3d50d4a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix-value-of-Language-fields-for-django.po-files.patch
+0002-Do-not-mask-test-failures-in-runtests.py.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-sitetree.git



More information about the Python-modules-commits mailing list