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 5/6] framework/excel_reporter: add driver/firmware/pkg
Date: Mon, 22 Mar 2021 10:46:15 +0800	[thread overview]
Message-ID: <20210322024616.14499-6-haiyangx.zhao@intel.com> (raw)
In-Reply-To: <20210322024616.14499-1-haiyangx.zhao@intel.com>

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

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

diff --git a/framework/excel_reporter.py b/framework/excel_reporter.py
index 89b9a175..747f577e 100644
--- a/framework/excel_reporter.py
+++ b/framework/excel_reporter.py
@@ -193,8 +193,20 @@ class ExcelReporter(object):
 
     def __write_nic(self, dut, target):
         nic = self.result.current_nic(dut, target)
+        driver = self.result.current_driver(dut)
+        kdriver = self.result.current_kdriver(dut)
+        firmware = self.result.current_firmware_version(dut)
+        pkg = self.result.current_package_version(dut)
         self.col += 1
+        self.sheet.col(self.col).width = 32 * 256  # 32 characters
         self.sheet.write(self.row, self.col, nic, self.title_style)
+        self.sheet.write(self.row+1, self.col, 'driver: ' + driver)
+        self.sheet.write(self.row+2, self.col, 'kdriver: ' + kdriver)
+        self.sheet.write(self.row+3, self.col, 'firmware: ' + firmware)
+        if pkg is not None:
+            self.sheet.write(self.row+4, self.col, 'pkg: ' + pkg)
+            self.row = self.row + 1
+        self.row = self.row + 3
         self.__write_suites(dut, target)
         self.col -= 1
 
-- 
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 ` Haiyang Zhao [this message]
2021-03-22  2:46 ` [dts] [PATCH V1 6/6] framework/json_reporter: add driver/firmware/pkg Haiyang Zhao
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-6-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).