Skip to content

tests/platform_tests/api/test_thermal_leak_sensor.py fixes - #26086

Merged
abdosi merged 1 commit into
sonic-net:masterfrom
nikamirrr:test_thermal_leak_sensor_fix
Jul 29, 2026
Merged

tests/platform_tests/api/test_thermal_leak_sensor.py fixes#26086
abdosi merged 1 commit into
sonic-net:masterfrom
nikamirrr:test_thermal_leak_sensor_fix

Conversation

@nikamirrr

@nikamirrr nikamirrr commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

max_minor_duration_sec allow 0 and added the assertion fixture

Description of PR

This PR adds the assertion fixture to be autoused in the tests and call the base class code
Also it allows max_minor_duration_sec to be 0, per tests design.

Fixes: #26226

Summary:

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Approach

What is the motivation for this PR?

Fix the test bugs

How did you do it?

Added the assertion fixture similar to other subclasses

How did you verify/test it?

Ran the test, and it failed with max_minor_duration_sec == 0 since the assertion was made that time correctly.
Fixed the test to allow max_minor_duration_sec == 0

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

max_minor_duration_sec allow 0 and added the assertion fixture

Signed-off-by: nmirin <nikolay.a.mirin@gmail.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph

Copy link
Copy Markdown
Contributor

@yejianquan could you help merge this thx

@nikamirrr

Copy link
Copy Markdown
Contributor Author

@yxieca @yejianquan would you please help to merge?

@nikamirrr

Copy link
Copy Markdown
Contributor Author

@abdosi would you please also see if you can merge this one?

@mssonicbld

Copy link
Copy Markdown
Collaborator

This PR has backport request label(s) for branch(es): msft-202608, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202608: <test result>) in the Test result section as well in your PR description.

---Powered by SONiC BuildBot

@weiguo-nvidia

Copy link
Copy Markdown
Contributor

LGTM

@nikamirrr
nikamirrr requested a review from Yakiv-Huryk July 27, 2026 18:23
@abdosi
abdosi merged commit 17fad1f into sonic-net:master Jul 29, 2026
23 checks passed
@mssonicbld

Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202608: Azure/sonic-mgmt.msft#1351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: tests/platform_tests/api/test_thermal_leak_sensor.py misses assertions and fails on valid max_minor_duration_sec = 0

6 participants