Skip to content

Reset device at start of test_live_record_db3_play - #3516

Merged
remibettan merged 3 commits into
realsenseai:ros2-developmentfrom
AviaAv:rsdev-6966-hw-reset-db3-test
May 17, 2026
Merged

remibettan merged 3 commits into
realsenseai:ros2-developmentfrom
AviaAv:rsdev-6966-hw-reset-db3-test

Conversation

@AviaAv

@AviaAv AviaAv commented May 13, 2026

Copy link
Copy Markdown
Contributor

Change in order to stabilize the test on CI

@AviaAv
AviaAv requested a review from Nir-Az May 13, 2026 08:10
if not list(rs.context().query_devices()):
devs = rs.context().query_devices()
if not list(devs):
pytest.skip("no RealSense device connected")

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.

Lets expect a device, we don't want a passed CI when no camera is connected

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.

fixed

@Nir-Az
Nir-Az requested a review from remibettan May 13, 2026 13:14
@Nir-Az

Nir-Az commented May 13, 2026

Copy link
Copy Markdown
Collaborator

@remibettan please review

# Reset the device; prior tests in this pytest run can leave the depth
# sensor in a state where pipeline.start() opens but no frames arrive.
devs[0].hardware_reset()
time.sleep(10) # USB re-enum + FW boot

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.

please try to make the sleep shorter

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.

Fixed

@remibettan
remibettan merged commit de11d7d into realsenseai:ros2-development May 17, 2026
9 of 10 checks passed
@AviaAv
AviaAv deleted the rsdev-6966-hw-reset-db3-test branch May 17, 2026 10:37
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