Skip to content
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

[action] [PR:16057] chore: skip PSU check for chassis LC #16332

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?

How did you verify/test it?

Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?

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

Documentation

Description of PR
Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Approach
What is the motivation for this PR?
Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?
How did you verify/test it?
Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?
Supported testbed topology if it's a new test case?

co-authorized by: jianquanye@microsoft.com
@mssonicbld mssonicbld requested a review from prgeor as a code owner January 3, 2025 06:31
@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld
Copy link
Collaborator Author

Original PR: #16057

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 18da1d4 into sonic-net:202411 Jan 3, 2025
16 checks passed
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.

2 participants