summaryrefslogtreecommitdiffstats
path: root/tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/ldp_snmp/test_ldp_snmp_topo1.py')
-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()