[Python-apps-team] Bug#808376: mercurial: mercurial-git autopkgtest fails because of stderr

Dmitry Shachnev mitya57 at debian.org
Sat Dec 19 10:41:06 UTC 2015


Source: mercurial
Version: 3.6.2-1
Tags: patch

Mercurial autopkgtest currently fails because “git clone” and “git push”
print some output into stderr.

One solution to this would be to add “allow-stderr” restriction, but
we still want to make sure mercurial commands do not print anything to
stderr. So here is a better solution:

--- mercurial-3.6.2/debian/tests/mercurial-git
+++ mercurial-3.6.2/debian/tests/mercurial-git
@@ -6,14 +6,14 @@
 
 # Setup a git repository with some content
 git init --bare git_server
-git clone git_server git_clone
+git clone git_server git_clone 2>&1
 cd git_clone
 git config user.name Babar
 git config user.email babar at jungle.org
 echo a >a
 git add a
 git commit -m a
-git push origin master
+git push origin master 2>&1
 cd ..
 
 # Now try to clone it with mercurial-git

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20151219/c878c8aa/attachment.sig>


More information about the Python-apps-team mailing list