From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CEA442C57 for ; Wed, 18 Jan 2017 03:41:27 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 17 Jan 2017 18:41:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,247,1477983600"; d="scan'208";a="214602938" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2017 18:41:26 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 17 Jan 2017 18:41:26 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Wed, 18 Jan 2017 10:41:24 +0800 From: "Liu, Yong" To: "Tu, LijuanX A" , "dts@dpdk.org" CC: "Tu, LijuanX A" Thread-Topic: [dts] [PATCH V1]framework/dut: fix parameter error on some OS Thread-Index: AQHScJCGmY46n+aZDEyxHpINtz6VAaE9h0hQ Date: Wed, 18 Jan 2017 02:41:23 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D4ADF1@SHSMSX103.ccr.corp.intel.com> References: <1484636922-47775-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1484636922-47775-1-git-send-email-lijuanx.a.tu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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]framework/dut: fix parameter error on some OS 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: , X-List-Received-Date: Wed, 18 Jan 2017 02:41:28 -0000 Hi Lijuan, Virtualization case may not support on FreeBSD, but I think destroy_all_sri= ov_vfs this function should has FreeBSD and Linux version. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu > Sent: Tuesday, January 17, 2017 3:09 PM > To: dts@dpdk.org > Cc: Tu, LijuanX A > Subject: [dts] [PATCH V1]framework/dut: fix parameter error on some OS >=20 > Virtual test is only support linux now. > Framework not support freebsd >=20 > Signed-off-by: Lijuan Tu > --- > framework/dut.py | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/framework/dut.py b/framework/dut.py index 9cbdaf7..0cc45dd > 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -820,6 +820,9 @@ class Dut(Crb): >=20 > def destroy_all_sriov_vfs(self): >=20 > + # virtual test is only support linux now. > + if self.get_os_type() !=3D "linux": > + > if self.ports_info =3D=3D None: > return > for port_id in range(len(self.ports_info)): > -- > 1.9.3