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 29A14A056F; Tue, 3 Mar 2020 02:58:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 035E41BFF2; Tue, 3 Mar 2020 02:58:10 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E7DAA1BFEF for ; Tue, 3 Mar 2020 02:58:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 17:58:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,509,1574150400"; d="scan'208";a="351708788" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by fmsmga001.fm.intel.com with ESMTP; 02 Mar 2020 17:58:05 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 3 Mar 2020 02:29:18 +0800 Message-Id: <1583173758-5410-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/perf_virtio_user: write throughput value to report when case is failed 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" Signed-off-by: lihong --- tests/TestSuite_perf_virtio_user_loopback.py | 5 +++-- tests/TestSuite_perf_virtio_user_pvp.py | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_perf_virtio_user_loopback.py b/tests/TestSuite_perf_virtio_user_loopback.py index 0fb97dd..822e6d9 100644 --- a/tests/TestSuite_perf_virtio_user_loopback.py +++ b/tests/TestSuite_perf_virtio_user_loopback.py @@ -142,6 +142,8 @@ class TestPerfVirtioUserLoopback(TestCase): """ results = 0.0 results_row = [] + out = self.vhost.send_expect("show port stats all", "testpmd>", 60) + time.sleep(5) for i in range(10): out = self.vhost.send_expect("show port stats all", "testpmd>", 60) time.sleep(5) @@ -261,7 +263,6 @@ class TestPerfVirtioUserLoopback(TestCase): row_dict0['status'] = 'PASS' else: row_dict0['status'] = 'FAIL' - self.verify(row_dict0['status'] == 'PASS', 'The throughput is not in correct range') row_dict1 = dict(name="Throughput", value=result_throughput, unit="Mpps", delta=delta) row_dict2 = dict(name="Txd/Rxd", value=row_in["TXD/RXD"], unit="descriptor") row_dict3 = dict(name="frame_size", value=row_in["Frame Size"], unit="bytes") @@ -274,7 +275,7 @@ class TestPerfVirtioUserLoopback(TestCase): '{0:s}_{1}.json'.format( self.nic, self.suite_name)), 'w') as fp: json.dump(self.json_obj, fp) - self.verify("Fail" not in status_result, "Exceeded Gap") + self.verify("FAIL" not in status_result, "Exceeded Gap") def test_perf_loopback_packed_ring_inorder_mergeable(self): """ diff --git a/tests/TestSuite_perf_virtio_user_pvp.py b/tests/TestSuite_perf_virtio_user_pvp.py index 2073426..344dba5 100644 --- a/tests/TestSuite_perf_virtio_user_pvp.py +++ b/tests/TestSuite_perf_virtio_user_pvp.py @@ -358,7 +358,6 @@ class TestVirtioSingleCorePerf(TestCase): row_dict0['status'] = 'PASS' else: row_dict0['status'] = 'FAIL' - self.verify(row_dict0['status'] == 'PASS', 'The throughput is not in correct range') row_dict1 = dict(name="Throughput", value=result_throughput, unit="Mpps", delta=delta) row_dict2 = dict(name="Txd/Rxd", value=row_in["TXD/RXD"], unit="descriptor") row_dict3 = dict(name="frame_size", value=row_in["Frame Size"], unit="bytes") @@ -371,7 +370,7 @@ class TestVirtioSingleCorePerf(TestCase): '{0:s}_{1}.json'.format( self.nic, self.suite_name)), 'w') as fp: json.dump(self.json_obj, fp) - self.verify("Fail" not in status_result, "Exceeded Gap") + self.verify("FAIL" not in status_result, "Exceeded Gap") def tear_down(self): """ -- 2.7.4