Skip to content

[posttest]Update test_posttest to ignore sanity_check and LogAnalyzer#2166

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
bingwang-ms:update_posttest
Sep 2, 2020
Merged

[posttest]Update test_posttest to ignore sanity_check and LogAnalyzer#2166
bingwang-ms merged 1 commit intosonic-net:masterfrom
bingwang-ms:update_posttest

Conversation

@bingwang-ms
Copy link
Copy Markdown
Collaborator

Sanity_check and LogAnalyzer are ignored for posttest

Description of PR

Summary:
Fixes # (issue)
This PR is to update test_posttest.py to ignore sanity_check and LogAnalyzer.

Type of change

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

Approach

What is the motivation for this PR?

The purpose of posttest script is to collect logs and dumps from DUT. So, sanity_check and LogAnalyzer are not necessary for it. To ensure that this case always succeed, sanity_check and LogAnalyzer are diasbled.

How did you do it?

Add two marker at module level.

pytest.mark.sanity_check(skip_sanity=True),
pytest.mark.disable_loganalyzer

How did you verify/test it?

Verified on Arista-7260

py.test --inventory ../ansible/str,../ansible/veos --host-pattern str-7260cx3-acs-1 --module-path ../ansible/library/ --testbed vms7-t0-7260-1 --testbed_file ../ansible/testbed.csv --junit-xml=tr.xml --log-cli-level warn --collect_techsupport=False --topology=t0,any,util -m posttest test_posttest.py
========================================================================================= test session starts =========================================================================================
platform linux2 -- Python 2.7.12, pytest-4.6.5, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
ansible: 2.8.7
rootdir: /data/Networking-acs-sonic-mgmt/tests, inifile: pytest.ini
plugins: forked-1.1.3, xdist-1.28.0, ansible-2.2.2, repeat-0.8.0
collected 1 item                                                                                                                                                                                      

test_posttest.py::test_collect_techsupport PASSED                                                                                                                                               [100%]

------------------------------------------------------------------ generated xml file: /data/Networking-acs-sonic-mgmt/tests/tr.xml -------------------------------------------------------------------
====================================================================================== 1 passed in 80.55 seconds ======================================================================================

Any platform specific information?

No.

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

N/A

Documentation

No

Sanity_check and LogAnalyzer are ignored for posttest
@bingwang-ms bingwang-ms merged commit e47f5fe into sonic-net:master Sep 2, 2020
@xwjiang-ms xwjiang-ms mentioned this pull request Mar 11, 2025
11 tasks
wangxin pushed a commit that referenced this pull request Mar 13, 2025
What is the motivation for this PR?
Sanity check in posttest was disabled by #2166, but current posttest will restore container autorestart, which rely on container health.

How did you do it?
Enable sanity check in posttest
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
What is the motivation for this PR?
Sanity check in posttest was disabled by sonic-net#2166, but current posttest will restore container autorestart, which rely on container health.

How did you do it?
Enable sanity check in posttest
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
What is the motivation for this PR?
Sanity check in posttest was disabled by sonic-net#2166, but current posttest will restore container autorestart, which rely on container health.

How did you do it?
Enable sanity check in posttest
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Include following commits:
    - d061e27 [tunnelmgrd]: Warm boot support (sonic-net#2166)
    - 73ced6e Remove port serdes object before removing port (sonic-net#2152)
    - 6ac0b9b [CoPP] Add always_enabled field to coppmgr logic (sonic-net#2034) (sonic-net#2147)

Signed-off-by: Lawrence Lee <[email protected]>
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.

3 participants