-
Notifications
You must be signed in to change notification settings - Fork 740
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
skipping unknown mac test for cisco 8k #7715
skipping unknown mac test for cisco 8k #7715
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
…line too long (134 > 120 characters)
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
…ontinuation line over-indented for visual indent
Hi @neethajohn , @kevinskwang, could you please merge this PR?
|
all skips are currently added via ‘tests_mark_conditions.yaml’. Adding within the script was done previously. Lately we have been adding all our skips via - https://github.com/sonic-net/sonic-mgmt/blob/master/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml |
@neethajohn, @kevinskwang, @bpar9 , please review the updated changes. |
tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Outdated
Show resolved
Hide resolved
@neethajohn, @kevinskwang, @bpar9 , please review the updated changes after resolving merge conflicts with latest master. |
@kevinskwang, could you please help merge this? |
* skipping unknown mac test for cisco 8k * fixing pre-commit error - tests/arp/test_unknown_mac.py:62:121: E501 line too long (134 > 120 characters) * fixing pre-commit error - tests/arp/test_unknown_mac.py:63:38: E127 continuation line over-indented for visual indent * moving test case skip to condition yaml * removing test case skip from script * Update tests_mark_conditions.yaml * Update tests_mark_conditions.yaml
Description of PR
Summary:
Fixes # (issue)
Skipping unknown mac test for cisco 8k
Type of change
Back port request
Approach
What is the motivation for this PR?
To add a skip condition for unsupported feature on cisco8000 platform
How did you do it?
Added skip condition in tests/arp/test_unknown_mac.py
How did you verify/test it?
Verified internally.
-------------------------------- generated xml file: /data/tests/logs/tr_2023-03-10-07-28-26.xml ---------------------------------
----------------------------------------------------- live log sessionfinish -----------------------------------------------------
07:29:30 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
=========================== short test summary info ============================
SKIPPED [3] /data/tests/common/helpers/assertions.py:13: Test is not supported for platform cisco-8000
========================== 3 skipped in 62.92 seconds ==========================
INFO:root:Can not get Allure report URL. Please check logs
Verified the changed skip reason message in UT:
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-3] SKIPPED [ 33%]
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-4] SKIPPED [ 66%]
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-8] SKIPPED [100%]
-------------------------------- generated xml file: /data/tests/logs/tr_2023-03-28-04-23-33.xml ---------------------------------
==================================================== short test summary info =====================================================
SKIPPED [3] arp/test_unknown_mac.py:350: Not supported on cisco-8000 platform
=================================================== 3 skipped in 13.21 seconds ===================================================
INFO:root:Can not get Allure report URL. Please check logs
vxr@7443b84e2583:/data/tests$
Verified the changed skip reason:
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-3] SKIPPED [ 33%]
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-4] SKIPPED [ 66%]
arp/test_unknown_mac.py::TestUnknownMac::test_unknown_mac[dscp-8] SKIPPED [100%]
-------------------------------- generated xml file: /data/tests/logs/tr_2023-03-30-05-52-18.xml ---------------------------------
==================================================== short test summary info =====================================================
SKIPPED [3] arp/test_unknown_mac.py:351: Behavior on cisco-8000 platform for unknown MAC is flooding rather than DROP, hence skipping.
=================================================== 3 skipped in 9.07 seconds ====================================================
INFO:root:Can not get Allure report URL. Please check logs
vxr@sonic-ucs-m5-3:/data/tests$
Any platform specific information?
Cisco 8000
Supported testbed topology if it's a new test case?
NA
Documentation