[Python-modules-team] Bug#694517: pyxdg: Fix autopkgtest output to go to stdout

Martin Pitt martin.pitt at ubuntu.com
Tue Nov 27 05:26:22 UTC 2012


Package: pyxdg
Version: 0.24-1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch raring

Hello,

thanks for adding an autopkgtest! However, autopkgtest currently
mandates that there is no stderr output, otherwise it gets counted as
a test failure:

  https://jenkins.qa.ubuntu.com/view/Raring/view/AutoPkgTest/job/raring-adt-pyxdg/1/ARCH=i386,label=albali/

nosetests doesn't seem to have an option to send its regular output to
stdout, so I redirect all of its output to stdout instead.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
diff -Nru pyxdg-0.24/debian/changelog pyxdg-0.24/debian/changelog
--- pyxdg-0.24/debian/changelog	2012-11-26 15:14:29.000000000 +0100
+++ pyxdg-0.24/debian/changelog	2012-11-27 06:23:41.000000000 +0100
@@ -1,3 +1,10 @@
+pyxdg (0.24-1ubuntu3) raring; urgency=low
+
+  * debian/tests/upstream: Send nose output to stdout instead of stderr; the
+    latter means a test failure.
+
+ -- Martin Pitt <martin.pitt at ubuntu.com>  Tue, 27 Nov 2012 06:23:17 +0100
+
 pyxdg (0.24-1ubuntu2) raring; urgency=low
 
   * debian/patches/set_default_menu.diff:
diff -Nru pyxdg-0.24/debian/tests/upstream pyxdg-0.24/debian/tests/upstream
--- pyxdg-0.24/debian/tests/upstream	2012-11-06 13:55:41.000000000 +0100
+++ pyxdg-0.24/debian/tests/upstream	2012-11-27 06:23:02.000000000 +0100
@@ -7,5 +7,5 @@
 cd test
 
 for PY in $PYTHONS; do
-    nosetests-$PY -v;
+    nosetests-$PY -v 2>&1;
 done


More information about the Python-modules-team mailing list