]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: mark tests spawning a new port as flaky
authorVincent Bernat <vincent@bernat.im>
Mon, 26 Dec 2016 09:52:57 +0000 (10:52 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 26 Dec 2016 09:52:57 +0000 (10:52 +0100)
They will be retried once.

tests/integration/requirements.txt
tests/integration/test_interfaces.py
tests/integration/test_lldpcli.py

index 9528dae7cf3b6668fb1ea1e3873cff74699599cb..5d5086e073ca4bc17f9bf2ef15650ed2786fec4e 100644 (file)
@@ -1,5 +1,6 @@
 apipkg==1.4
 execnet==1.4.1
+flaky==3.3.0
 py==1.4.31
 pyroute2==0.3.16
 pytest==2.9.0
index b840019e7f3c9bf55a5b5685c239874e3752c80c..e2766a785da739c6abbed797d68461968b07dfa7 100644 (file)
@@ -1,6 +1,7 @@
 import pytest
 import pyroute2
 import time
+from flaky import flaky
 
 
 def test_simple_bridge(lldpd1, lldpd, lldpcli, namespaces, links):
@@ -204,6 +205,7 @@ def test_down_then_up_with_vlan(lldpd1, lldpd, lldpcli, namespaces, links):
         assert out['lldp.eth0.vlan.vlan-id'] == ['300', '400']
 
 
+@flaky
 def test_new_interface(lldpd1, lldpd, lldpcli, namespaces, links):
     with namespaces(2):
         lldpd()
index 79f56aa0d77904a1f676e38dd1c76c3847fc1a66..39f289d5d1e84b4c7836c6238109602e30a91bb7 100644 (file)
@@ -4,6 +4,7 @@ import re
 import platform
 import json
 import xml.etree.ElementTree as ET
+from flaky import flaky
 
 
 @pytest.fixture(scope='session')
@@ -189,6 +190,7 @@ def test_configure_one_port(lldpd1, lldpd, lldpcli, namespaces, links):
 
 @pytest.mark.skipif('Dot3' not in pytest.config.lldpd.features,
                     reason="Dot3 not supported")
+@flaky
 def test_new_port_take_default(lldpd1, lldpd, lldpcli, namespaces, links):
     with namespaces(2):
         lldpd()