From f729e8854ec029b6a27bb531ea5ff27f4752c0e1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 26 Nov 2016 00:21:52 +0100 Subject: [PATCH] tests: more fix for pcap test --- tests/integration/test_pcap.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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": -- 2.39.5