From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 610A495D9 for ; Wed, 3 Feb 2016 07:50:30 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 02 Feb 2016 22:50:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,388,1449561600"; d="scan'208";a="895295911" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 02 Feb 2016 22:50:30 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u136oRoK010744; Wed, 3 Feb 2016 14:50:27 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u136oPl2025204; Wed, 3 Feb 2016 14:50:27 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u136oP9c025200; Wed, 3 Feb 2016 14:50:25 +0800 From: Yong Liu To: dts@dpdk.org Date: Wed, 3 Feb 2016 14:50:14 +0800 Message-Id: <1454482217-25147-4-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1454482217-25147-1-git-send-email-yong.liu@intel.com> References: <1454482217-25147-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH 3/6] framework test_case: add kernel driver variable 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, 03 Feb 2016 06:50:30 -0000 Add kernel module name in test case module, most times nics in same family belong to same kernel driver. With this variable, test case can handle difference between NICs more easily. Signed-off-by: Marvin Liu diff --git a/framework/test_case.py b/framework/test_case.py index f601381..9ef1c32 100644 --- a/framework/test_case.py +++ b/framework/test_case.py @@ -53,6 +53,7 @@ class TestCase(object): self.nic = self.nics[0] else: self.nic = '' + self.kdriver = self.get_nic_driver(self.nic) def set_up_all(self): pass @@ -74,7 +75,7 @@ class TestCase(object): if nic_name in DRIVERS.keys(): return DRIVERS[nic_name] - raise ValueError(nic_name) + return "Unknown" def get_nic_name(self, pci_id): for nic_name, pci in NICS.items(): -- 1.9.3