Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver/sshdriver: read from tools #1558

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alextercete
Copy link

Description
SSHDriver now supports the tools key in the config to customize the path to ssh, scp, sshfs and rsync. It falls back to loading them from the PATH, so there's no change in behaviour if the tools aren't specified.

This is useful when running Labgrid on hosts which don't have these tools installed. It also allows running Labgrid workflows hermetically.

Testing
Manual tests have been done, using SSHDriver to transfer files and execute commands.

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • PR has been tested
  • Man pages have been regenerated

Fixes #1553

SSHDriver now supports the `tools` key in the config to customize the
path to `ssh`, `scp`, `sshfs` and `rsync`. It falls back to loading them
from the PATH, so there's no change in behaviour if the tools aren't
specified.

Signed-off-by: Alex Tercete <[email protected]>
@Emantor Emantor self-requested a review January 6, 2025 06:09
@Emantor Emantor self-assigned this Jan 6, 2025
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 56.2%. Comparing base (d98677c) to head (2a703fa).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/driver/sshdriver.py 70.0% 6 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1558   +/-   ##
======================================
  Coverage    56.1%   56.2%           
======================================
  Files         170     170           
  Lines       13225   13233    +8     
======================================
+ Hits         7432    7440    +8     
  Misses       5793    5793           
Flag Coverage Δ
3.10 56.2% <70.0%> (+<0.1%) ⬆️
3.11 56.2% <70.0%> (+<0.1%) ⬆️
3.12 56.2% <70.0%> (+<0.1%) ⬆️
3.13 56.1% <70.0%> (+<0.1%) ⬆️
3.9 56.2% <70.0%> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Emantor Emantor assigned jluebbe and Bastian-Krause and unassigned Emantor Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSHDriver to use tools to find ssh/scp/sshfs/scp
4 participants