mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-25 03:57:02 +00:00
Merge pull request #7909 from pjdruddy/snmp-skip-test
test: add snmp skip test
This commit is contained in:
commit
ddbda04e87
@ -76,6 +76,11 @@ class TemplateTopo(Topo):
|
||||
|
||||
def setup_module(mod):
|
||||
"Sets up the pytest environment"
|
||||
|
||||
# skip tests is SNMP not installed
|
||||
if not os.path.isfile("/usr/sbin/snmpd"):
|
||||
error_msg = "SNMP not installed - skipping"
|
||||
pytest.skip(error_msg)
|
||||
# This function initiates the topology build with Topogen...
|
||||
tgen = Topogen(TemplateTopo, mod.__name__)
|
||||
# ... and here it calls Mininet initialization functions.
|
||||
|
Loading…
Reference in New Issue
Block a user