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 B81D6A04F0; Fri, 27 Dec 2019 09:14:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 784CF1BF9E; Fri, 27 Dec 2019 09:14:09 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B146D1BF90 for ; Fri, 27 Dec 2019 09:14:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Dec 2019 00:14:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,362,1571727600"; d="scan'208";a="220053503" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga006.jf.intel.com with ESMTP; 27 Dec 2019 00:14:06 -0800 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Dec 2019 00:14:05 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 27 Dec 2019 00:13:58 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.164]) with mapi id 14.03.0439.000; Fri, 27 Dec 2019 16:13:56 +0800 From: "Tu, Lijuan" To: "Zhang, YanX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability Thread-Index: AQHVmf3rmzbSrOjW+kWLj3FjY7wZw6fN5wRQ Date: Fri, 27 Dec 2019 08:13:56 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB8EF2C@SHSMSX101.ccr.corp.intel.com> References: <1573634679-53064-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1573634679-53064-1-git-send-email-yanx.a.zhang@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 V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability 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 some days ago. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhang,yan > Sent: Wednesday, November 13, 2019 4:45 PM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scrip= ts > to improve stability >=20 > Optimize scripts to improve stability. >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_vf_interrupt_pmd.py | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_interrupt_pmd.py > b/tests/TestSuite_vf_interrupt_pmd.py > index 0b1f858..eaeaccd 100644 > --- a/tests/TestSuite_vf_interrupt_pmd.py > +++ b/tests/TestSuite_vf_interrupt_pmd.py > @@ -212,18 +212,23 @@ class TestVfInterruptPmd(TestCase): >=20 > self.VF0_bind_vfio_pci() >=20 > + cores =3D "1S/1C/1T" > + core_list =3D self.vm0_dut.get_core_list(cores) > + core_user =3D core_list[0] > + core_mask_user =3D utils.create_mask(core_list) > + > cmd =3D self.path + \ > - " -l 1-3 -n %d -- -P -p 0x01 --config=3D'(0,0,2)'" % ( > - self.vm0_dut.get_memory_channels()) > + " -c %s -n %d -- -P -p 0x01 --config=3D'(0,0,%s)'" % ( > + core_mask_user, self.vm0_dut.get_memory_channels(), > core_user) > self.vm0_dut.send_expect(cmd, "L3FWD_POWER", 60) > time.sleep(1) > self.send_packet(self.vf0_mac, self.rx_intf_0, self.vm0_dut) > self.destroy_vm_env() >=20 > self.verify( > - "lcore 2 is waked up from rx interrupt on port 0" in self.ou= t2, "Wake > up failed") > + "lcore %s is waked up from rx interrupt on port 0" % core_us= er in > self.out2, "Wake up failed") > self.verify( > - "lcore 2 sleeps until interrupt triggers" in self.out2, "lc= ore 2 not > sleeps") > + "lcore %s sleeps until interrupt triggers" % core_user in se= lf.out2, > "lcore %s not sleeps" % core_user) >=20 > def test_nic_interrupt_VF_vfio_pci(self, driver=3D'default'): > """ > -- > 2.17.2