FIX: Add show log output when test failed. 86/26386/4
authorPeter Mikus <pmikus@cisco.com>
Mon, 6 Apr 2020 13:22:18 +0000 (13:22 +0000)
committerPeter Mikus <pmikus@cisco.com>
Wed, 8 Apr 2020 16:44:28 +0000 (16:44 +0000)
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I6bdce8156ba214be210c195a9f3effd718301a86

resources/libraries/python/InterfaceUtil.py
resources/libraries/robot/shared/test_teardown.robot

index 144a96c..e2dc2f1 100644 (file)
@@ -1184,6 +1184,10 @@ class InterfaceUtil:
         :raises RuntimeError: If it is not possible to create RDMA interface on
             the node.
         """
+        PapiSocketExecutor.run_cli_cmd(
+            node, u"set logging class avf level debug"
+        )
+
         cmd = u"rdma_create"
         pci_addr = Topology.get_interface_pci_addr(node, if_key)
         args = dict(
index fe0dda2..1174fde 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2020 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -34,6 +34,8 @@
 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
 | | Show PAPI History On All DUTs | ${nodes}
 | | Run Keyword If Test Failed
+| | ... | Show Log On All DUTs | ${nodes}
+| | Run Keyword If Test Failed
 | | ... | Get Core Files on All Nodes | ${nodes}
 | | Run Keyword If Test Failed
 | | ... | Verify VPP PID in Teardown