summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-01-16 02:07:53 +0100
committerChristian Hopps <chopps@labn.net>2025-01-16 03:13:34 +0100
commitf71d5281ceddf67cdbbc88d8605bc3e9c24136ef (patch)
tree03c6133881db0b639c3d7b0edca61265ae7fec8c
parenttests: fix missed grpc test requirement for frr-backend addition (diff)
downloadfrr-f71d5281ceddf67cdbbc88d8605bc3e9c24136ef.tar.xz
frr-f71d5281ceddf67cdbbc88d8605bc3e9c24136ef.zip
tests: dont run ldp snmp test if no snmp
Signed-off-by: Christian Hopps <chopps@labn.net>
-rw-r--r--tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py b/tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py
index ea404beae..db2657e52 100644
--- a/tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py
+++ b/tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py
@@ -107,6 +107,11 @@ def build_topo(tgen):
def setup_module(mod):
"Sets up the pytest environment"
+
+ if not os.path.isfile("/usr/sbin/snmpd"):
+ error_msg = "SNMP not installed - skipping"
+ pytest.skip(error_msg)
+
tgen = Topogen(build_topo, mod.__name__)
tgen.start_topology()