Skip to content

Issue test error message only on last retry #13817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

OhadMeir
Copy link
Contributor

@OhadMeir OhadMeir commented Mar 6, 2025

test_wrapper_ function is called for each trial of the test. We want to issue error log only if this is the last retry.
Note - A failed retry message is issued as debug level, we want error message only if all retries failed.

@OhadMeir OhadMeir requested a review from Nir-Az March 6, 2025 08:14
@@ -421,11 +421,11 @@ def devices_by_test_config( test, exceptions ):
continue


def test_wrapper_( test, configuration=None, repetition=1, retry=0, sns=None ):
def test_wrapper_( test, configuration=None, repetition=1, curr_retry=0, last_retry = 0, sns=None ):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe for being clearer we can change last_retry to max_retries ? or retries_count?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed

@Nir-Az Nir-Az merged commit da20d4d into IntelRealSense:development Mar 6, 2025
25 checks passed
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