Skip to content

Adding test for be ts after frame ts#13997

Merged
remibettan merged 5 commits into
realsenseai:developmentfrom
remibettan:adding_test_for_be_ts_after_frame_ts
May 18, 2025
Merged

Adding test for be ts after frame ts#13997
remibettan merged 5 commits into
realsenseai:developmentfrom
remibettan:adding_test_for_be_ts_after_frame_ts

Conversation

@remibettan

Copy link
Copy Markdown
Contributor

Tracked by: RSDSO-20166

Comment thread src/mf/mf-uvc.cpp
@@ -0,0 +1,98 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2024 Intel Corporation. All Rights Reserved.

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.

2025

backend_ts = frame.get_frame_metadata(rs.frame_metadata_value.backend_timestamp)
delta = backend_ts - frame_ts
if not test.check(delta > 0):
print("frame_ts = " + repr(frame_ts) + ", backend_ts = " + repr(backend_ts) + ", delta = " + repr(delta) + ", this should be positive")

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.

We will get here on an error?
I think LibCI has some trach method for that no?

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.

Why not using log.e instead of print?

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.

ok

test.check_equal(int(depth_sensor.get_option(rs.option.global_time_enabled)), 1)

#############################################################################################
with test.closure("Get Depth frame timestamp and compare it to sensor timestamp"):

@Nir-Az Nir-Az May 13, 2025

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.

You compare frame timetamp or sensor timestamp?
The title say sensor but the call below is for check_backend_ts_greater_than_frame_ts
Sensor timestamp is another metadata that is not related here right?

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.

right - typo

test.check_equal(int(color_sensor.get_option(rs.option.global_time_enabled)), 1)

#############################################################################################
with test.closure("Get Color frame timestamp and compare it to sensor timestamp"):

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.

Same

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.

ok

@remibettan remibettan requested a review from Nir-Az May 15, 2025 06:12
@remibettan remibettan closed this May 15, 2025
@remibettan remibettan reopened this May 15, 2025
@Nir-Az Nir-Az closed this May 18, 2025
@Nir-Az Nir-Az reopened this May 18, 2025
@Nir-Az Nir-Az closed this May 18, 2025
@Nir-Az Nir-Az reopened this May 18, 2025
@remibettan remibettan merged commit 1ecd91e into realsenseai:development May 18, 2025
@remibettan remibettan deleted the adding_test_for_be_ts_after_frame_ts branch July 29, 2025 14:05
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.

2 participants