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

[Bugfix] Fix NameError imported by PR #14672 #14723

Merged

Conversation

yutongzhang-microsoft
Copy link
Contributor

@yutongzhang-microsoft yutongzhang-microsoft commented Sep 25, 2024

Description of PR

In PR #14672, we moved some functions from platform_tests/verify_dut_health.py to common/platform/device_utils.py, but forgot to move the defination of variable test_report, which will cause an NameError. In this PR, we define this variable in common/platform/device_utils.py to fix this issue.

Summary:
Fixes #14672

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?

In PR #14672, we moved some functions from platform_tests/verify_dut_health.py to common/platform/device_utils.py, but forgot to move the defination of variable test_report, which will cause an NameError. In this PR, we define this variable in common/platform/device_utils.py to fix this issue.

How did you do it?

Define the variable in common/platform/device_utils.py to fix this issue.

How did you verify/test it?

Any platform specific information?

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

Documentation

@wangxin wangxin merged commit f78fb00 into sonic-net:master Sep 25, 2024
16 checks passed
@yutongzhang-microsoft yutongzhang-microsoft deleted the yutongzhang/fix_error branch September 25, 2024 06:02
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
What is the motivation for this PR?
In PR sonic-net#14672, we moved some functions from platform_tests/verify_dut_health.py to common/platform/device_utils.py, but forgot to move the defination of variable test_report, which will cause an NameError. In this PR, we define this variable in common/platform/device_utils.py to fix this issue.

How did you do it?
Define the variable in common/platform/device_utils.py to fix this issue.
hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Oct 10, 2024
What is the motivation for this PR?
In PR sonic-net#14672, we moved some functions from platform_tests/verify_dut_health.py to common/platform/device_utils.py, but forgot to move the defination of variable test_report, which will cause an NameError. In this PR, we define this variable in common/platform/device_utils.py to fix this issue.

How did you do it?
Define the variable in common/platform/device_utils.py to fix this issue.
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
What is the motivation for this PR?
In PR sonic-net#14672, we moved some functions from platform_tests/verify_dut_health.py to common/platform/device_utils.py, but forgot to move the defination of variable test_report, which will cause an NameError. In this PR, we define this variable in common/platform/device_utils.py to fix this issue.

How did you do it?
Define the variable in common/platform/device_utils.py to fix this issue.
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