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

Correct setting mrtime/mrcode for IGMP #158

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

NexSabre
Copy link
Contributor

Closes #157

Copy link

@szymbor1993 szymbor1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NexSabre
Copy link
Contributor Author

NexSabre commented Dec 15, 2021

@antoninbas @Yi-Tseng can I please you to review this change?

Comment on lines +1 to +6
from ptf.testutils import simple_igmp_packet


def test_simple_igmp_packet__proper_setting_mrtime_mrcode():
simple_packet = simple_igmp_packet(igmp_mrtime=10)
assert simple_packet["IGMP"].mrcode == 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this test being run in CI by

sudo python3 /usr/local/bin/nose2 utests.tests

Maybe the command needs to be modified so that nose2 can run the tests in the new subdirectory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual, this test is run by the Makefile's command test https://github.com/p4lang/ptf/pull/158/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R17
I planned to do some refactor around all unittests, then I run it into CI, with separate PR.

@antoninbas antoninbas merged commit 7302230 into p4lang:master Dec 16, 2021
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.

Field mrtime in IGMP packet has different name in Scapy: mrcode
3 participants