hpk42 / muacrypt

Autocrypt and more for Mail User Agents
Other
36 stars 15 forks source link

Tests fail generating gpg because of gpg-agent socket path too long #2

Closed juga0 closed 7 years ago

juga0 commented 7 years ago

Extract of the error:

.tox/py27/local/lib/python2.7/site-packages/autocrypt/bingpg.py:202: in gen_secret_key [...] E InvocationFailure: GPG Command '/usr/bin/gpg --batch --homedir /tmp/pytest-of-user/pytest-5/test_reply_no_delivto_sender_e0/account/id/default/gpghome --pinentry-mode=loopback --passphrase '' --gen-key /tmp/tmpnPI31H' retcode=2 E stdout: E stderr: E gpg: keybox '/tmp/pytest-of-user/pytest-5/test_reply_no_delivto_sender_e0/account/id/default/gpghome/pubring.kbx' created E gpg: can't connect to the agent: IPC connect call failed E gpg: agent_genkey failed: No agent running E gpg: key generation failed: No agent running

Apparently sockets path can't be longer than 100 characters and the socket is not being created