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 E7597A0353; Wed, 13 Nov 2019 09:39:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5C6A1BEFD; Wed, 13 Nov 2019 09:39:33 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 730241BEFA for ; Wed, 13 Nov 2019 09:39:32 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 00:39:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,299,1569308400"; d="scan'208";a="287813721" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 13 Nov 2019 00:39:30 -0800 From: "zhang,yan" To: dts@dpdk.org Cc: "zhang,yan" Date: Wed, 13 Nov 2019 16:44:39 +0800 Message-Id: <1573634679-53064-1-git-send-email-yanx.a.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" Optimize scripts to improve stability. Signed-off-by: zhang,yan --- tests/TestSuite_vf_interrupt_pmd.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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): self.VF0_bind_vfio_pci() + cores = "1S/1C/1T" + core_list = self.vm0_dut.get_core_list(cores) + core_user = core_list[0] + core_mask_user = utils.create_mask(core_list) + cmd = self.path + \ - " -l 1-3 -n %d -- -P -p 0x01 --config='(0,0,2)'" % ( - self.vm0_dut.get_memory_channels()) + " -c %s -n %d -- -P -p 0x01 --config='(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() self.verify( - "lcore 2 is waked up from rx interrupt on port 0" in self.out2, "Wake up failed") + "lcore %s is waked up from rx interrupt on port 0" % core_user in self.out2, "Wake up failed") self.verify( - "lcore 2 sleeps until interrupt triggers" in self.out2, "lcore 2 not sleeps") + "lcore %s sleeps until interrupt triggers" % core_user in self.out2, "lcore %s not sleeps" % core_user) def test_nic_interrupt_VF_vfio_pci(self, driver='default'): """ -- 2.17.2