Package: python-logutils Version: 0.3.3-4 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu wily ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: - d/p/test-failures-fatal.patch: Make unit test failures fatal. This fix has been submitted upstream (see patch headers). Thanks for considering the patch. -- System Information: Debian Release: jessie/sid APT prefers wily-updates APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily'), (100, 'wily-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-4-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru python-logutils-0.3.3/debian/patches/series python-logutils-0.3.3/debian/patches/series --- python-logutils-0.3.3/debian/patches/series 2015-05-29 10:22:08.000000000 +0100 +++ python-logutils-0.3.3/debian/patches/series 2015-05-30 00:13:46.000000000 +0100 @@ -1,2 +1,3 @@ no-network-access-during-doc-build.patch +test-failures-fatal.patch fix-_levelNames-vs-_levelToName.patch diff -Nru python-logutils-0.3.3/debian/patches/test-failures-fatal.patch python-logutils-0.3.3/debian/patches/test-failures-fatal.patch --- python-logutils-0.3.3/debian/patches/test-failures-fatal.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-logutils-0.3.3/debian/patches/test-failures-fatal.patch 2014-12-18 13:58:25.000000000 +0000 @@ -0,0 +1,21 @@ +Description: Test failures should be fatal to the build process +Author: Liam Young <liam.yo...@canonical.com> +Bug-Ubuntu: https://launchpad.net/bugs/1319909 +Forwarded: https://bitbucket.org/vinay.sajip/logutils/pull-request/1/fix-python3-tests-and-make-test-failures/diff +Last-Update: 2014-07-04 + +Index: python-logutils/setup.py +=================================================================== +--- python-logutils.orig/setup.py ++++ python-logutils/setup.py +@@ -27,7 +27,9 @@ class TestCommand(distutils.core.Command + import logutil_tests + loader = unittest.TestLoader() + runner = unittest.TextTestRunner() +- runner.run(loader.loadTestsFromModule(logutil_tests)) ++ test_results = runner.run(loader.loadTestsFromModule(logutil_tests)) ++ if not test_results.wasSuccessful(): ++ sys.exit(1) + + def initialize_options(self): + pass