From: Vincent Bernat Date: Fri, 25 Nov 2016 23:21:52 +0000 (+0100) Subject: tests: more fix for pcap test X-Git-Tag: 0.9.6~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f729e8854ec029b6a27bb531ea5ff27f4752c0e1;p=thirdparty%2Flldpd.git tests: more fix for pcap test --- diff --git a/tests/integration/test_pcap.py b/tests/integration/test_pcap.py index ef8bf833..04af32e2 100644 --- a/tests/integration/test_pcap.py +++ b/tests/integration/test_pcap.py @@ -38,12 +38,15 @@ class TestPcapCaptures(object): "lldp.eth0.chassis.mac": "00:35:35:35:35:35", "lldp.eth0.chassis.ttl": "120", "lldp.eth0.port.ifname": "g1", - "lldp.eth0.port.auto-negotiation.supported": "yes", - "lldp.eth0.port.auto-negotiation.enabled": "yes", - "lldp.eth0.port.auto-negotiation.1000Base-T.hd": "no", - "lldp.eth0.port.auto-negotiation.1000Base-T.fd": "yes", - "lldp.eth0.port.auto-negotiation.current": "unknown", } + if 'Dot3' in pytest.config.lldpd.features: + expected.update({ + "lldp.eth0.port.auto-negotiation.supported": "yes", + "lldp.eth0.port.auto-negotiation.enabled": "yes", + "lldp.eth0.port.auto-negotiation.1000Base-T.hd": "no", + "lldp.eth0.port.auto-negotiation.1000Base-T.fd": "yes", + "lldp.eth0.port.auto-negotiation.current": "unknown", + }) if 'LLDP-MED' in pytest.config.lldpd.features: expected.update({ "lldp.eth0.lldp-med.device-type":