diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-09 14:54:42 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-09 14:54:42 +0100 |
commit | bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8 (patch) | |
tree | 76ab5a2e0a7465aa20de080988b024627d03d213 /scripts | |
parent | c033c77b487caeb9505217232add571f362f7afe (diff) | |
download | vyos-1x-bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8.tar.gz vyos-1x-bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8.zip |
snmp: output expected value on error
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cli/test_service_snmp.py | 6 |
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())) |