Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casefolding device name instead of strict case sensitive comparison #3135

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions realsense2_camera/test/utils/pytest_live_camera_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,9 @@ def check_if_camera_connected(device_type, serial_no=None):
name_line = long_data[index].split()
if name_line[0] != "Intel":
continue
if name_line[2] != device_type:
if name_line[2].casefold() != device_type.casefold():
continue
if serial_no == None:
return True
if serial_no == name_line[3]:
if serial_no is None or serial_no == name_line[3]:
return True

return False
Expand Down
Loading