summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/cli/test_service_snmp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py
index 5fd5eafcc..e9d04a1ae 100755
--- a/scripts/cli/test_service_snmp.py
+++ b/scripts/cli/test_service_snmp.py
@@ -78,7 +78,11 @@ class TestSNMPService(unittest.TestCase):
else:
expected += ',udp6:[{}]:161'.format(addr)
- self.assertTrue(expected in config)
+ try:
+ self.assertTrue(expected in config)
+ except:
+ print("expected: {}".format(expected))
+ print("config: {}".format(config))
# Check for running process
self.assertTrue("snmpd" in (p.name() for p in process_iter()))