Skip to content

Commit

Permalink
Dpdk: add log print for annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed Oct 30, 2024
1 parent a7d1efd commit cb68343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microsoft/testsuites/dpdk/dpdkutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,16 +1169,19 @@ def annotate_dpdk_test_result(
try:
dpdk_version = test_kit.testpmd.get_dpdk_version()
test_result.information["dpdk_version"] = str(dpdk_version)
log.debug(f"Found dpdk version: {dpdk_version}")
except AssertionError as err:
test_kit.node.log.debug(f"Could not fetch DPDK version info: {str(err)}")
try:
rdma_version = test_kit.rdma_core.get_installed_version()
test_result.information["rdma_version"] = str(rdma_version)
log.debug(f"Found rdma version: {rdma_version}")
except AssertionError as err:
test_kit.node.log.debug(f"Could not fetch RDMA version info: {str(err)}")
try:
nic_hw = get_node_nic_short_name(test_kit.node)
test_result.information["nic_hw"] = nic_hw
log.debug(f"Found nic version: {nic_hw}")
except AssertionError as err:
test_kit.node.log.debug(f"Could not fetch NIC short name: {str(err)}")

Expand Down

0 comments on commit cb68343

Please sign in to comment.