[Python-modules-commits] [python-asyncssh] 02/04: Discard errors when invoking ssh-agent

Vincent Bernat bernat at moszumanska.debian.org
Fri Sep 30 15:11:27 UTC 2016


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

bernat pushed a commit to branch master
in repository python-asyncssh.

commit 01eb957d65d2682a75d67767e0f885fd2bfaa7de
Author: Vincent Bernat <vincent at bernat.im>
Date:   Fri Sep 30 17:01:45 2016 +0200

    Discard errors when invoking ssh-agent
    
    Otherwise, we may be unable to parse correctly the result. ssh-agent
    being a setgid program, the dynamic linker may output errors when
    running with eatmydata.
    
    Closes: #838088
---
 tests/server.py     | 2 +-
 tests/test_agent.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/server.py b/tests/server.py
index 14b0487..c2183fa 100644
--- a/tests/server.py
+++ b/tests/server.py
@@ -110,7 +110,7 @@ class ServerTestCase(AsyncTestCase):
                                                       cls._server_port))
         run('cat skey.pub >> .ssh/known_hosts')
 
-        output = run('ssh-agent -a agent')
+        output = run('ssh-agent -a agent 2> /dev/null')
         cls._agent_pid = int(output.splitlines()[2].split()[3][:-1])
 
         os.environ['SSH_AUTH_SOCK'] = 'agent'
diff --git a/tests/test_agent.py b/tests/test_agent.py
index a8bd8b2..18d75a8 100644
--- a/tests/test_agent.py
+++ b/tests/test_agent.py
@@ -78,7 +78,7 @@ class _TestAPI(AsyncTestCase):
 
         run('ssh-keygen -q -b 2048 -t rsa -N "" -f ckey')
 
-        output = run('ssh-agent -a agent')
+        output = run('ssh-agent -a agent 2> /dev/null')
         cls._agent_pid = int(output.splitlines()[2].split()[3][:-1])
 
         os.environ['SSH_AUTH_SOCK'] = 'agent'

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



More information about the Python-modules-commits mailing list