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 EDB4FA0567; Fri, 13 Mar 2020 07:29:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E543F1C02D; Fri, 13 Mar 2020 07:29:54 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 756011C01E for ; Fri, 13 Mar 2020 07:29:53 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:29:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="416197644" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 12 Mar 2020 23:29:52 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:29:52 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:29:51 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.235]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:29:49 +0800 From: "Tu, Lijuan" To: "Han, YingyaX" , "dts@dpdk.org" CC: "Han, YingyaX" Thread-Topic: [dts] [PATCH V2]tests/nic_single_core: fix tests failed without saving result Thread-Index: AQHV8scFqGLRy1AEdEWLmjoZMTb6Z6hGHAXg Date: Fri, 13 Mar 2020 06:29:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC70D@SHSMSX101.ccr.corp.intel.com> References: <1583396764-57662-1-git-send-email-yingyax.han@intel.com> In-Reply-To: <1583396764-57662-1-git-send-email-yingyax.han@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2]tests/nic_single_core: fix tests failed without saving result 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of hanyingya > Sent: Thursday, March 5, 2020 4:26 PM > To: dts@dpdk.org > Cc: Han, YingyaX > Subject: [dts] [PATCH V2]tests/nic_single_core: fix tests failed without = saving > result >=20 > Signed-off-by: hanyingya > --- > tests/TestSuite_nic_single_core_perf.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_nic_single_core_perf.py > b/tests/TestSuite_nic_single_core_perf.py > index 5fafe5f..48a0d8a 100644 > --- a/tests/TestSuite_nic_single_core_perf.py > +++ b/tests/TestSuite_nic_single_core_perf.py > @@ -196,8 +196,8 @@ class TestNicSingleCorePerf(TestCase): > self.nb_ports =3D len(self.dut_ports) > self.verify(self.nb_ports >=3D 1, "At least 1 port is required t= o test") > self.perf_test(self.nb_ports) > - self.handle_results() > self.handle_expected() > + self.handle_results() >=20 > def handle_expected(self): > """ > @@ -252,7 +252,7 @@ class TestNicSingleCorePerf(TestCase): > # run packet generator > streams =3D > self.pktgen_helper.prepare_stream_from_tginput(tgenInput, 100, vm_config, > self.tester.pktgen) > # set traffic option > - traffic_opt =3D {'delay': 30} > + traffic_opt =3D {'duration': self.test_duration} > # _, pps =3D self.tester.traffic_generator_throughput(tg= enInput, > rate_percent=3D100, delay=3D30) > _, packets_received =3D > self.tester.pktgen.measure_throughput(stream_ids=3Dstreams, > options=3Dtraffic_opt) > self.verify(packets_received > 0, "No traffic detected")= @@ -348,11 > +348,11 @@ class TestNicSingleCorePerf(TestCase): > row_dict0['parameters'].append(row_dict3) > json_obj[case_name].append(row_dict0) > status_result.append(row_dict0['status']) > - self.verify("FAIL" not in status_result, "Excessive gap between = test > results and expectations") > with open(os.path.join(rst.path2Result, > '{0:s}_single_core_perf.json'.format( > self.nic)), 'w') as fp: > json.dump(json_obj, fp) > + self.verify("FAIL" not in status_result, "Excessive gap between > + test results and expectations") >=20 > def set_fields(self): > """ > -- > 2.17.2