summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 14:54:42 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 14:54:42 +0100
commitbcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8 (patch)
tree76ab5a2e0a7465aa20de080988b024627d03d213 /scripts
parentc033c77b487caeb9505217232add571f362f7afe (diff)
downloadvyos-1x-bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8.tar.gz
vyos-1x-bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8.zip
snmp: output expected value on error
Diffstat (limited to 'scripts')
-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()))