Skip to content

Conversation

@calucita
Copy link

Small fix for the ID_SERIAL_SHORT documentation.

Example for ID_SERIAL_SHORT for USBSerialPort shouldn't have single quotes.
documentation fix for ID_SERIAL_SHORT. It shouldn't have single quotes.
USBSerialPort:
match:
'@ID_SERIAL_SHORT': 'P-00-00682'
ID_SERIAL_SHORT: 'P-00-00682'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually correct. '@ID_SERIAL_SHORT' means that his match must apply to a parent device.

USBSerialPort:
match:
'ID_SERIAL_SHORT': 'P-00-00682'
ID_SERIAL_SHORT: 'P-00-00682'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be quoted and needs a @ as well (see below).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the examples I was working on the code would crash if it had the ''
I didn't try with the @ tho.
However, there are code examples (commited by you :P) that do not use the quotes...
https://github.com/labgrid-project/labgrid/blob/a6571a44501df93c649fafe315d75097d95d4941/examples/barebox/local-usb.yaml

My wider issue is that the pattern seems to be different on every file I checked, which made it hard for me to tell what the expected code was.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output from the labgrid-suggest tool should be correct for your local system.

@jluebbe
Copy link
Member

jluebbe commented Oct 15, 2021

This is solved by #852.

@jluebbe jluebbe closed this Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants