Skip to content

LibCI --> exclude-device added - #14262

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:device
Sep 1, 2025
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:device

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Aug 31, 2025 •

Copy link
Copy Markdown
Collaborator

Tracked on [LRS-1343]

if exclude_device_set is not None:
excluded_sns = set() # convert the list of exclude specs to a list of serial numbers
ignored_list = list()
for spec in exclude_device_set:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why you need ignore_list variable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thats the devices.by_spec API, this line see which excluded devices the user picked are really on the enumeration list a created a real excluded list from it.
It use the devices.by_spec function that also gets an ignore list for other use cases, here it's empty

log.d( f'final device set after exclusions: {serial_numbers_to_string( device_set )}' )
else:
# If no device_set was specified, we need to discover all devices and exclude the specified ones
all_devices = set(devices.all())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if/else logic can be optimized but nothing critical

@Nir-Az
Nir-Az merged commit 93b479e into realsenseai:development Sep 1, 2025
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