tests: refactor asf framework code
[vpp.git] / test / test_vm_vpp_interfaces.py
index b86c519..917b950 100644 (file)
@@ -11,7 +11,8 @@ from vpp_qemu_utils import (
     add_namespace_route,
 )
 from vpp_iperf import start_iperf, stop_iperf
-from framework import VppTestCase, VppTestRunner
+from framework import VppTestCase
+from asfframework import VppTestRunner, tag_fixme_debian11, is_distro_debian11
 from config import config
 from vpp_papi import VppEnum
 import time
@@ -63,6 +64,9 @@ layer3 = test_config["L3"]
 def create_test(test_name, test, ip_version, mtu):
     """Create and return a unittest method for a test."""
 
+    @unittest.skipIf(
+        is_distro_debian11, "FIXME intermittent test failures on debian11 distro"
+    )
     @unittest.skipIf(
         config.skip_netns_tests, "netns not available or disabled from cli"
     )
@@ -126,6 +130,7 @@ def generate_vpp_interface_tests():
                 setattr(TestVPPInterfacesQemu, test_name, test_func)
 
 
+@tag_fixme_debian11
 class TestVPPInterfacesQemu(VppTestCase):
     """Test VPP interfaces inside a QEMU VM for IPv4/v6.