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 82FFDA0519; Fri, 3 Jul 2020 08:19:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6CFE01D9D6; Fri, 3 Jul 2020 08:19:44 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4C89F1D9DE for ; Fri, 3 Jul 2020 08:19:42 +0200 (CEST) IronPort-SDR: l4cxzeWpDMP2hg/tMa4Lg8jP2UFrvTbCGP5vuJosQK0GYZbLZzsuKcExE5ueX4kvIeGSPGftIN /I/YCHqx0oVg== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="231964696" X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="231964696" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 23:19:41 -0700 IronPort-SDR: kTmKU8mkdRtbenIYtss8kMLGEJpqG3SvdC1Day/WtKKMuyJQdWwroAPXciWXenj48laYTgZrKM 97oezJ9k/mjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="296122573" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2020 23:19:39 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 3 Jul 2020 14:16:41 +0800 Message-Id: <20200703061641.25823-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords 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" check vf pci info. Signed-off-by: Xie wei --- tests/TestSuite_vm_hotplug.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.py index 2dfd835..f403d40 100644 --- a/tests/TestSuite_vm_hotplug.py +++ b/tests/TestSuite_vm_hotplug.py @@ -279,14 +279,7 @@ class TestVmHotplug(TestCase): def check_vf_device(self, has_device=True, device=1): time.sleep(1) - sign = 'Connection' - lis1 = ['fortville_spirit', 'fortville_eagle', 'sagepond', 'twinpond', 'sageville'] - lis2 = ['fortpark_TLV', 'fortville_25g',"fortpark_BASE-T", "carlsville"] - if self.nic in lis1: - sign = 'Ethernet' - elif self.nic in lis2: - sign = 'Device' - out = self.vm_session.send_expect('./usertools/dpdk-devbind.py -s | grep %s' % sign, '#') + out = self.vm_session.send_expect('./usertools/dpdk-devbind.py -s', '#') time.sleep(2) if has_device: self.verify(self.vf_pci0 in out, 'no vf device') -- 2.17.1