From d9af64aa0af6ba1e42fc0afd5cad10b1853e8a43 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 10 Feb 2020 19:14:05 +0100 Subject: Revert "snmp: output expected value on error" This reverts commit bcc0b5bd6e11a9fbc2fcb3c450fdb48bb85499e8. --- scripts/cli/test_service_snmp.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py index 72f338e31..2f918c929 100755 --- a/scripts/cli/test_service_snmp.py +++ b/scripts/cli/test_service_snmp.py @@ -78,11 +78,7 @@ class TestSNMPService(unittest.TestCase): else: expected += ',udp6:[{}]:161'.format(addr) - try: - self.assertTrue(expected in config) - except: - print("expected: {}".format(expected)) - print("config: {}".format(config)) + self.assertTrue(expected in config) # Check for running process self.assertTrue("snmpd" in (p.name() for p in process_iter())) -- cgit v1.2.3