pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Escape attributes in ssh parameters

Open Closius opened this issue 1 year ago • 0 comments

I'm trying this (Window 10 mingw):

/c/Python399/Scripts/pytest.exe -d --rsyncdir /d/my_test/remote_test --tx 'ssh=-F/d/my_test/remote_test/ssh_config myvmmachine//python=/usr/bin/python3.6//chdir=~/my_py_test' /d/my_test/remote_test/pytest_test.py

And I got this error:

ssh: Could not resolve hostname myvmmachine/python=/usr/bin/python3.6/chdir=~/my_py_test: Name or service not known

If I run it without //python=/usr/bin/python3.6//chdir=~/my_py_test - it works fine. But I need it. Please help

ssh confog file /d/my_test/remote_test/ssh_config:

Host myvmmachine
  HostName 127.0.0.1
  User mydev
  Port 33556
  LogLevel DEBUG3
  IdentityFile ~/.ssh/my_rsa

Closius avatar Mar 01 '24 13:03 Closius