From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 97374106A for ; Tue, 17 Jan 2017 08:07:39 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 16 Jan 2017 23:07:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,243,1477983600"; d="scan'208";a="1083871230" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 16 Jan 2017 23:07:37 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 17 Jan 2017 15:08:42 +0800 Message-Id: <1484636922-47775-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Tue, 17 Jan 2017 07:07:40 -0000 Virtual test is only support linux now. Framework not support freebsd Signed-off-by: Lijuan Tu --- framework/dut.py | 3 +++ 1 file changed, 3 insertions(+) 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): def destroy_all_sriov_vfs(self): + # virtual test is only support linux now. + if self.get_os_type() != "linux": + if self.ports_info == None: return for port_id in range(len(self.ports_info)): -- 1.9.3