]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: more fix for pcap test
authorVincent Bernat <vincent@bernat.im>
Fri, 25 Nov 2016 23:21:52 +0000 (00:21 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 25 Nov 2016 23:21:52 +0000 (00:21 +0100)
tests/integration/test_pcap.py

index ef8bf833be3d5a382244a1d6878f1b4ef5e86dcc..04af32e2ee27dc1423197dad44e9e0070513e863 100644 (file)
@@ -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":