From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 98037324D for ; Sat, 11 Aug 2018 03:37:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2018 18:37:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,222,1531810800"; d="scan'208";a="80786172" Received: from juan.sh.intel.com ([10.67.118.154]) by orsmga001.jf.intel.com with ESMTP; 10 Aug 2018 18:37:38 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Sat, 11 Aug 2018 18:05:49 +0800 Message-Id: <1533981949-72444-1-git-send-email-lijuan.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report 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: , X-List-Received-Date: Sat, 11 Aug 2018 01:37:41 -0000 This is for DPDK performance lab. Signed-off-by: Lijuan Tu --- tests/TestSuite_nic_single_core_perf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py index c081560..847a94c 100644 --- a/tests/TestSuite_nic_single_core_perf.py +++ b/tests/TestSuite_nic_single_core_perf.py @@ -303,8 +303,13 @@ class TestNicSingleCorePerf(TestCase): value = row_in['TXD/RXD'], unit = 'descriptors') delta = (float(row_in['Throughput'].split()[0]) - float(row_in['Expected Throughput'].split()[0])) + if delta >= -self.gap: + result = 'PASS' + else: + result = 'FAIL' row_dict['throughput'] = dict( - delta = delta, unit = row_in['Throughput'].split()[1]) + delta = delta, unit = row_in['Throughput'].split()[1], + result = result) json_obj['results'].append(row_dict) with open(os.path.join(rst.path2Result, '{0:s}_single_core_perf.json'.format( -- 1.8.3.1