Skip to content

Commit e2129de

Browse files
committed
D555 excluded from D585S specific tests
1 parent 8c27f73 commit e2129de

8 files changed

Lines changed: 18 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ librealsense-log.txt
9393
*.cxx
9494

9595
.vscode/*
96+
/unit-tests/.idea

unit-tests/live/d500/depth-mapping/test-frame-number-vs-counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright(c) 2023 RealSense, Inc. All Rights Reserved.
33
import time
44

5-
# test:device each(D500*)
5+
# test:device D585S
66

77
import pyrealsense2 as rs
88
from rspy import test, log

unit-tests/live/d500/safety/test-y16-calibration-format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# License: Apache 2.0. See LICENSE file in root directory.
22
# Copyright(c) 2023 RealSense, Inc. All Rights Reserved.
33

4-
# test:device D500*
4+
# test:device D585S
55
# This test checks streaming y16 profile
66

77
import time

unit-tests/live/d500/test-get-set-config-table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# License: Apache 2.0. See LICENSE file in root directory.
22
# Copyright(c) 2023 RealSense, Inc. All Rights Reserved.
33

4-
# test:device D500*
4+
# test:device D585S
55

66
import pyrealsense2 as rs
77
from rspy import test, log

unit-tests/live/d500/test-temperatures-xu-vs-hwmc.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@
1212
depth_sensor = dev.first_depth_sensor()
1313
dp_device = dev.as_debug_protocol()
1414

15-
15+
is_projector_option_supported = True
1616
######################################## HELPERS ##########################################
1717

1818
def get_temperatures_from_xu():
19+
global is_projector_option_supported
1920
pvt_temp = -10
2021
ohm_temp = -10
2122
proj_temp = -10
2223

2324
test.check(depth_sensor.supports(rs.option.soc_pvt_temperature))
2425
test.check(depth_sensor.supports(rs.option.ohm_temperature))
25-
test.check(depth_sensor.supports(rs.option.projector_temperature))
26+
is_projector_option_supported = depth_sensor.supports(rs.option.projector_temperature)
2627

2728
pvt_temp = depth_sensor.get_option(rs.option.soc_pvt_temperature)
2829
ohm_temp = depth_sensor.get_option(rs.option.ohm_temperature)
29-
proj_temp = depth_sensor.get_option(rs.option.projector_temperature)
30+
if is_projector_option_supported:
31+
proj_temp = depth_sensor.get_option(rs.option.projector_temperature)
3032

3133
return pvt_temp, ohm_temp, proj_temp
3234

@@ -79,8 +81,10 @@ def get_temperatures_from_hwm():
7981
ohm_temp = all_temp_list[ohm_temp_index - 1]
8082

8183
# get projector temperature
82-
proj_temp_index = 1
83-
proj_temp = all_temp_list[proj_temp_index - 1]
84+
proj_temp = -10
85+
if is_projector_option_supported:
86+
proj_temp_index = 1
87+
proj_temp = all_temp_list[proj_temp_index - 1]
8488

8589
return pvt_temp, ohm_temp, proj_temp
8690

@@ -97,7 +101,8 @@ def get_temperatures_from_hwm():
97101
tolerance = 3.0
98102
test.check_approx_abs(pvt_temp_xu, pvt_temp_hwm, tolerance)
99103
test.check_approx_abs(ohm_temp_xu, ohm_temp_hwm, tolerance)
100-
test.check_approx_abs(projector_temp_xu, projector_temp_xu, tolerance)
104+
if is_projector_option_supported:
105+
test.check_approx_abs(projector_temp_xu, projector_temp_xu, tolerance)
101106

102107
test.finish()
103108
#############################################################################################

unit-tests/live/metadata/test-depth-unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright(c) 2021 RealSense, Inc. All Rights Reserved.
33

44
#test:device D400*
5-
#test:device D500*
5+
#test:device D500* !D555
66

77
import pyrealsense2 as rs
88
from rspy import test

unit-tests/live/options/test-presets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright(c) 2023 RealSense, Inc. All Rights Reserved.
33

44
# test:device each(D400*)
5-
# test:device each(D500*)
5+
# test:device each(D500*) !D555
66

77
# See FW stability issue RSDSO-18908
88
# test:retries 2

unit-tests/live/options/test-timestamp-domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright(c) 2022 RealSense, Inc. All Rights Reserved.
33

44
# test:device each(D400*)
5-
# test:device each(D500*)
5+
# test:device each(D500*) !D555
66

77
import time
88
import pyrealsense2 as rs

0 commit comments

Comments
 (0)