tests: skip more excluded plugin tests

Check and skip VPP_EXCLUDED_PLUGINS tests for most of plugins.

Type: improvement
Signed-off-by: Dmitry Valter <d-valter@yandex-team.com>
Change-Id: I23fd3666729251c639aa8da72a676058e3f5bb4e
diff --git a/test/test_srv6_mobile.py b/test/test_srv6_mobile.py
index 314dfc1..7a96e84 100644
--- a/test/test_srv6_mobile.py
+++ b/test/test_srv6_mobile.py
@@ -4,6 +4,7 @@
 from ipaddress import IPv4Address
 from ipaddress import IPv6Address
 from vpp_ip_route import VppIpRoute, VppRoutePath, FibPathProto, VppIpTable
+from config import config
 
 from vpp_srv6_mobile import (
     SRv6MobileNhtype,
@@ -14,7 +15,12 @@
 from scapy.contrib.gtp import *
 from scapy.all import *
 
+import unittest
 
+
+@unittest.skipIf(
+    "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests"
+)
 class TestSRv6EndMGTP4E(VppTestCase):
     """SRv6 End.M.GTP4.E (SRv6 -> GTP-U)"""
 
@@ -108,6 +114,9 @@
             self.assertEqual(pkt[GTP_U_Header].teid, 0xBBBBBBBB)
 
 
+@unittest.skipIf(
+    "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests"
+)
 class TestSRv6TMGTP4D(VppTestCase):
     """SRv6 T.M.GTP4.D (GTP-U -> SRv6)"""
 
@@ -215,6 +224,9 @@
             )
 
 
+@unittest.skipIf(
+    "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests"
+)
 class TestSRv6EndMGTP6E(VppTestCase):
     """SRv6 End.M.GTP6.E"""
 
@@ -306,6 +318,9 @@
             self.assertEqual(pkt[GTP_U_Header].teid, 0xBBBBBBBB)
 
 
+@unittest.skipIf(
+    "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests"
+)
 class TestSRv6EndMGTP6D(VppTestCase):
     """SRv6 End.M.GTP6.D"""