diff options
author | Christian Hopps <chopps@labn.net> | 2025-01-16 02:07:53 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2025-01-16 03:13:34 +0100 |
commit | f71d5281ceddf67cdbbc88d8605bc3e9c24136ef (patch) | |
tree | 03c6133881db0b639c3d7b0edca61265ae7fec8c | |
parent | tests: fix missed grpc test requirement for frr-backend addition (diff) | |
download | frr-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.py | 5 |
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() |