Pytest/Fabric not using SSH agent when debugging in PyCharm

200 views Asked by At

I am writing some infrastructure tests using pytest and fabric. Generally this is working. I run a test from the command line that executes a fabric task on a remote server and asserts something about the result of that task. The task is executed using my running SSH agent.

However, when I try to debug my tests in PyCharm the fabric tasks fail with the following exception

Fatal error: Needed to prompt for a connection or sudo password, but input would be ambiguous in parallel mode

This difference in behavior leads me to believe something isn't configured properly in my debug configuration. I have made sure that environment variables in debug config includes the SSH agent PID.

0

There are 0 answers