tests: Remove the error output from the linux-cp tests 09/34409/2
authorNeale Ranns <neale@graphiant.com>
Tue, 9 Nov 2021 16:15:48 +0000 (16:15 +0000)
committerDamjan Marion <dmarion@me.com>
Tue, 9 Nov 2021 17:29:32 +0000 (17:29 +0000)
Type: test

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ib9899327897f36219c113fedb25366cd1be463a0

test/test_linux_cp.py

index 4cbcf6c..b683954 100644 (file)
@@ -377,7 +377,7 @@ class TestLinuxCPIpsec(TemplateIpsec,
 
         pair = VppLcpPair(self, p.tun_if, self.host).add_vpp_config()
 
-        self.logger.error(self.vapi.cli("sh int addr"))
+        self.logger.info(self.vapi.cli("sh int addr"))
         self.logger.info(self.vapi.cli("sh lcp"))
         self.logger.info(self.vapi.cli("sh ip punt redirect"))
 
@@ -399,11 +399,8 @@ class TestLinuxCPIpsec(TemplateIpsec,
                                      src=p.tun_if.remote_ip4,
                                      dst=p.tun_if.local_ip4,
                                      count=N_PKTS)
-        try:
-            rxs = self.send_and_expect(self.tun_if, pkts, self.host)
-            self.verify_decrypted(p, rxs)
-        finally:
-            self.logger.error(self.vapi.cli("sh trace"))
+        rxs = self.send_and_expect(self.tun_if, pkts, self.host)
+        self.verify_decrypted(p, rxs)
 
         # cleanup
         pair.remove_vpp_config()