pytest-dev / pytest-dev/pytest-xdist

Escape attributes in ssh parameters

Open
#1,032 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.9k
Forks
287
Avg merge
9h 30m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows MinGW command from the issue and trace how the --tx ssh parameter is parsed before being passed to ssh. Done means the -F option, hostname, python path, and chdir attribute remain distinct and the command connects successfully with all attributes present.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.