Skip to content

Commit

Permalink
PR #3135 from kadiredd: Casefolding device name instead of strict cas…
Browse files Browse the repository at this point in the history
…e sensitive comparison
  • Loading branch information
SamerKhshiboun authored Jun 20, 2024
2 parents d0e0e5e + 8adf5ae commit f688fba
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit f688fba

Please sign in to comment.