From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 238D5A0524; Fri, 27 Nov 2020 03:57:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF11CCAC1; Fri, 27 Nov 2020 03:56:57 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 17227CAA1 for ; Fri, 27 Nov 2020 03:56:56 +0100 (CET) IronPort-SDR: xsK0eLOQ83QhzhS+bdn9aqYPMxD3MyiEKH3k/O2BoII3Ij6UB6j4bK7o4Pvi81dLYjAm+gn3LU RRjZwWx/jWRw== X-IronPort-AV: E=McAfee;i="6000,8403,9817"; a="233947118" X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="233947118" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 18:56:56 -0800 IronPort-SDR: zLPxU3/vyCTIlG5RC9cGTtw/1JXG/B5AWNFubjVcirgRApfB29JTNnvs3we/cyrFFE4PCyWKXR iU9rDGpjlAJg== X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="313557337" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 18:56:55 -0800 From: Haiyang Zhao To: Lijuan.Tu@intel.com, dts@dpdk.org Cc: Haiyang Zhao Date: Fri, 27 Nov 2020 10:50:29 +0800 Message-Id: <20201127025029.22276-8-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201127025029.22276-1-haiyangx.zhao@intel.com> References: <20201127025029.22276-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 7/7] framework/stats_reporter: add dpdk version in stats_reporter X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 dpdk version in stats_reporter. Signed-off-by: Haiyang Zhao --- framework/stats_reporter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/stats_reporter.py b/framework/stats_reporter.py index 3793ca5..8cde5cd 100644 --- a/framework/stats_reporter.py +++ b/framework/stats_reporter.py @@ -65,6 +65,13 @@ class StatsReporter(object): self.__add_stat(test_result) def __write_stats(self): + duts = self.result.all_duts() + if len(duts) == 1: + self.stats_file.write("dpdk_version = {}\n".format(self.result.current_dpdk_version(duts[0]))) + else: + for dut in duts(): + dpdk_version = self.result.current_dpdk_version(dut) + self.stats_file.write("{}.dpdk_version = {}\n".format(dut, dpdk_version)) self.__count_stats() self.stats_file.write("Passed = %d\n" % self.passed) self.stats_file.write("Failed = %d\n" % self.failed) -- 2.17.1