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

[ptf map] address ptf map indexing issue #2483

Merged
merged 1 commit into from
Nov 7, 2020
Merged

Conversation

yxieca
Copy link
Collaborator

@yxieca yxieca commented Nov 6, 2020

Description of PR

Summary:
Fixes #2480

Type of change

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

Approach

What is the motivation for this PR?

test_lag_2 is failing on single DUT and KVM testbeds.

How did you do it?

For DUTs that doesn't have ptf port to map, the ptf_map would be an empty dictionary. Indexing it with dut_index will cause KeyError. Ignore these KeyErrors.

Signed-off-by: Ying Xie ying.xie@microsoft.com

How did you verify/test it?

platform linux2 -- Python 2.7.12, pytest-4.6.5, py-1.9.0, pluggy-0.13.1
ansible: 2.8.12
rootdir: /var/src/sonic-mgmt/tests, inifile: pytest.ini
plugins: ansible-2.2.2, forked-1.3.0, xdist-1.28.0, html-1.22.1, repeat-0.8.0, metadata-1.10.0
collected 24 items

pc/test_lag_2.py::test_lag[str-dx010-acs-1|PortChannel0005-single_lag] PASSED

For DUTs that doesn't have ptf port to map, the ptf_map woudl be
an empty dictionary. Indexing it with dut_index will cause
KeyError. Ignore these KeyErrors.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@yxieca yxieca requested a review from a team November 6, 2020 22:07
@yxieca
Copy link
Collaborator Author

yxieca commented Nov 6, 2020

retest vsimage please

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.

test_lag_2 failed on kvm testbed
2 participants