test suite reviews and discussions
 help / color / mirror / Atom feed
From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: dts@dpdk.org
Cc: lijuan.tu@intel.com, Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1 6/6] framework/json_reporter: add driver/firmware/pkg
Date: Mon, 22 Mar 2021 10:46:16 +0800	[thread overview]
Message-ID: <20210322024616.14499-7-haiyangx.zhao@intel.com> (raw)
In-Reply-To: <20210322024616.14499-1-haiyangx.zhao@intel.com>

add driver/firmware/pkg info in json format result file.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/json_reporter.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/framework/json_reporter.py b/framework/json_reporter.py
index 88099cb8..f7025c2c 100644
--- a/framework/json_reporter.py
+++ b/framework/json_reporter.py
@@ -65,8 +65,15 @@ class JSONReporter(object):
             return 'fail'
         target_map = {}
         target_map['dpdk_version'] = result.current_dpdk_version(dut)
+        target_map['nic'] = {}
         for target in result.all_targets(dut):
+            target_map['nic']['name'] = result.current_nic(dut, target)
             target_map[target] = self.__scan_target(result, dut, target)
+            target_map['nic']['kdriver'] = result.current_kdriver(dut)
+            target_map['nic']['driver'] = result.current_driver(dut)
+            target_map['nic']['firmware'] = result.current_firmware_version(dut)
+            if result.current_package_version(dut) is not None:
+                target_map['nic']['pkg'] = result.current_package_version(dut)
         return target_map
 
     def save(self, result):
-- 
2.17.1


  parent reply	other threads:[~2021-03-22  2:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22  2:46 [dts] [PATCH V1 0/6] framework: add dirver/firmware/pkg in result Haiyang Zhao
2021-03-22  2:46 ` [dts] [PATCH V1 1/6] nics/net_device: add driver/firmware Haiyang Zhao
2021-03-22  2:46 ` [dts] [PATCH V1 2/6] framework/dut: get nic driver/firmware info Haiyang Zhao
2021-03-22  2:46 ` [dts] [PATCH V1 3/6] framework/test_result: add driver/firmware/package Haiyang Zhao
2021-03-22  2:46 ` [dts] [PATCH V1 4/6] framework/dts: add more nic configurations in result Haiyang Zhao
2021-03-22  2:46 ` [dts] [PATCH V1 5/6] framework/excel_reporter: add driver/firmware/pkg Haiyang Zhao
2021-03-22  2:46 ` Haiyang Zhao [this message]
2021-03-22  2:58 ` [dts] [PATCH V1 0/6] framework: add dirver/firmware/pkg in result Zhao, HaiyangX
2021-03-25  5:48   ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210322024616.14499-7-haiyangx.zhao@intel.com \
    --to=haiyangx.zhao@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).