labgrid-project / labgrid

Embedded systems control library for development, testing and installation
https://labgrid.readthedocs.io/
Other
343 stars 179 forks source link

driver/usbstoragedriver: wrap commands #1530

Open Emantor opened 1 month ago

Emantor commented 1 month ago

Description Use the wrap_command() function to escape command arguments in case a remote operation over SSH is done.

Checklist

Fixes #1392 Alternative to #1450

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 56.6%. Comparing base (ec87797) to head (e3e40b5).

Files with missing lines Patch % Lines
labgrid/driver/usbstoragedriver.py 0.0% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1530 +/- ## ====================================== Coverage 56.6% 56.6% ====================================== Files 168 168 Lines 13033 13033 ====================================== Hits 7385 7385 Misses 5648 5648 ``` | [Flag](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | Coverage Δ | | |---|---|---| | [3.10](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | `56.6% <0.0%> (ø)` | | | [3.11](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | `56.6% <0.0%> (ø)` | | | [3.12](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | `56.6% <0.0%> (ø)` | | | [3.13](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | `56.6% <0.0%> (ø)` | | | [3.9](https://app.codecov.io/gh/labgrid-project/labgrid/pull/1530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project) | `56.6% <0.0%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=labgrid-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.