Repository navigation
LibCI --> exclude-device added - #14262
Merged
Merged
Conversation
alexkunin-gh
reviewed
Sep 1, 2025
| 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: |
Contributor
There was a problem hiding this comment.
why you need ignore_list variable?
Collaborator
Author
There was a problem hiding this comment.
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
alexkunin-gh
reviewed
Sep 1, 2025
| 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()) |
Contributor
There was a problem hiding this comment.
if/else logic can be optimized but nothing critical
alexkunin-gh
approved these changes
Sep 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracked on [LRS-1343]