Skip to content

[action] [PR:16535] Fix ASIC check in test_pfcwd_function#16539

Merged
bingwang-ms merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/16535
Jan 16, 2025
Merged

[action] [PR:16535] Fix ASIC check in test_pfcwd_function#16539
bingwang-ms merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/16535

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
The issue was introduced by PR #15772
The ASIC check is not working as expected because of the syntax error in the code. It should be in instead of ==

if dut.facts['asic_type'] == ["mellanox", "cisco-8000"]:

The issue will cause PFCWD function not stable on some platform.

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

This PR is to fix a syntax issue in test_pfcwd_function.py.

How did you do it?

Fix the syntax.

How did you verify/test it?

The change is verified on a physical testbed.

collected 1 item 

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[bjw2-can-4600c-2] ^H ^HPASSED [100%]

Any platform specific information?

No.

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

Not a new test.

Documentation

@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld
Copy link
Collaborator Author

Original PR: #16535

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit 9b999f7 into sonic-net:202405 Jan 16, 2025
yejianquan pushed a commit to yejianquan/sonic-mgmt that referenced this pull request Jan 17, 2025
These changes are picked up in this merge

c74b051 (upstream/202405) Fix the test_nhop_group nexthop map for ld DUTs (sonic-net#16166)
3850e85 [dualtor] Fix `testFdbMacLearning` (sonic-net#16549)
4c5b264 Stabilize `test_snmp_fdb_send_tagged` (sonic-net#16409)
9b999f7 Fix ASIC check in test_pfcwd_function (sonic-net#16535) (sonic-net#16539)
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