Skip to content

Add USB serial number filtering (RDT-991) #316

Open
@Dzarda7

Description

@Dzarda7

Is your feature request related to a problem? Please describe.
There was recently added feature to filter ports by USB serial number to esptool and will be in next release, pyserial has the same feature. It might make sense to add this feature to pytest-embedded as this is perfect solution how to differentiate connected devices.

Describe the solution you'd like
Add option like --port-by-serial to enable filtering, this probably should be impossible to use with --port option. Other filtering options might be also added (like VID, PID etc.), but this one seems to be the best.

Describe alternatives you've considered
CI has to have symlinks for USB ports now, which might make sense in some cases but needs to be set in base system, not in the docker, so this might be another option.

Additional context
This feature is not necessary for me, just want to know your opinion about it as it might be great addition and might simplify making CI tests.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions