Skip to content

hdr option supported checked and test skipped if not supported - #14993

Merged
remibettan merged 7 commits into
realsenseai:developmentfrom
remibettan:d401_hdr_test_fix
May 4, 2026
Merged

remibettan merged 7 commits into
realsenseai:developmentfrom
remibettan:d401_hdr_test_fix

Conversation

@remibettan

@remibettan remibettan commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Tracked by: RSDEV-8393

Should be merged only after PR #14987 - update: MERGED

Copilot AI review requested due to automatic review settings April 30, 2026 10:21

Copilot AI left a comment

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.

Pull request overview

Updates D400 live HDR tests to skip gracefully on devices that do not support the hdr_enabled option (RSDEV-8393), avoiding hard assertion failures on unsupported hardware.

Changes:

  • Replace assert depth_sensor and depth_sensor.supports(rs.option.hdr_enabled) with pytest.skip(...) in HDR sanity test.
  • Apply the same HDR-support skip behavior across multiple HDR long-test entry points and helpers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
unit-tests/live/d400/pytest-hdr-sanity.py Skip HDR streaming sanity test when hdr_enabled is unsupported.
unit-tests/live/d400/pytest-hdr-long.py Skip HDR config/streaming tests and helpers when hdr_enabled is unsupported.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread unit-tests/live/d400/pytest-hdr-long.py Resolved
Comment thread unit-tests/live/d400/pytest-hdr-long.py Resolved
Comment thread unit-tests/live/d400/pytest-hdr-long.py Outdated
depth_sensor = dev.first_depth_sensor()

assert depth_sensor and depth_sensor.supports(rs.option.hdr_enabled)
if not (depth_sensor and depth_sensor.supports(rs.option.hdr_enabled)):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

instead of repeating the check see Ohad PR which about to get merged about the new dependency plugin
#14987
He can further explain the usage
single check per file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@remibettan
remibettan force-pushed the d401_hdr_test_fix branch from 1cf78e3 to 3722025 Compare May 3, 2026 12:56
@remibettan
remibettan requested a review from Nir-Az May 4, 2026 06:38

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@remibettan
remibettan merged commit d230e3e into realsenseai:development May 4, 2026
29 of 30 checks passed
@remibettan
remibettan deleted the d401_hdr_test_fix branch July 8, 2026 12:04
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.

3 participants