From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5A6BBA034F; Mon, 22 Mar 2021 03:55:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55DF4140EED; Mon, 22 Mar 2021 03:55:38 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id AA6994069C for ; Mon, 22 Mar 2021 03:55:36 +0100 (CET) IronPort-SDR: 5Vnm3LU0tD8uybLdjlOFGEsXZt8p8eQTlhavRnsJ7Z0f/5G9aSLnfkSW75HHKBhCGLM+ijG1cU YwxeBU+71vkg== X-IronPort-AV: E=McAfee;i="6000,8403,9930"; a="254189573" X-IronPort-AV: E=Sophos;i="5.81,266,1610438400"; d="scan'208";a="254189573" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 19:55:36 -0700 IronPort-SDR: puc6TdblYLLK54Z2gjGJi832Tw61WzvLU4m3lZxzztwlWdkUK7I2m1Cm3Z4R1+W7usV/tN5Dhu gFTvwzfRx7NA== X-IronPort-AV: E=Sophos;i="5.81,266,1610438400"; d="scan'208";a="407623040" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 19:55:34 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: lijuan.tu@intel.com, Haiyang Zhao Date: Mon, 22 Mar 2021 10:46:16 +0800 Message-Id: <20210322024616.14499-7-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210322024616.14499-1-haiyangx.zhao@intel.com> References: <20210322024616.14499-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 6/6] framework/json_reporter: add driver/firmware/pkg X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" add driver/firmware/pkg info in json format result file. Signed-off-by: Haiyang Zhao --- 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