From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0120393DE for ; Mon, 7 Dec 2015 02:23:21 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 06 Dec 2015 17:23:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,392,1444719600"; d="scan'208";a="855243215" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga001.fm.intel.com with ESMTP; 06 Dec 2015 17:23:20 -0800 Message-ID: <5664DF7F.9030506@intel.com> Date: Mon, 07 Dec 2015 09:23:11 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: yongjie , dts@dpdk.org References: <1449220481-11071-1-git-send-email-yongjiex.gu@intel.com> In-Reply-To: <1449220481-11071-1-git-send-email-yongjiex.gu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH] forcibly remove kni mode in unit test kni 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: Mon, 07 Dec 2015 01:23:22 -0000 Hi Yongjie, It look like one bug in kni module, can you check with developer first? On 12/04/2015 05:14 PM, yongjie wrote: > From: Gu yongjie > > command "rmmod" cannot remove rte_kni on RHEL65 & CentOS6.6. > And the env will crashed when insmod kni. > Add "-f" to forcibly remove it. > > Signed-off-by: Gu yongjie > --- > tests/TestSuite_unit_tests_kni.py | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py > index 20df8cc..11cbde7 100644 > --- a/tests/TestSuite_unit_tests_kni.py > +++ b/tests/TestSuite_unit_tests_kni.py > @@ -55,7 +55,7 @@ class TestUnitTestsKni(TestCase): > out = self.dut.send_expect('lsmod | grep rte_kni', "# ") > > if "rte_kni" in out: > - self.dut.send_expect('rmmod rte_kni.ko', "# ") > + self.dut.send_expect('rmmod -f rte_kni.ko', "# ") > > out = self.dut.send_expect('insmod ./%s/kmod/rte_kni.ko lo_mode=lo_mode_fifo' % (self.target), "# ") > > @@ -103,4 +103,4 @@ class TestUnitTestsKni(TestCase): > """ > Run after each test suite. > """ > - self.dut.send_expect("rmmod rte_kni", "# ", 5) > + self.dut.send_expect("rmmod -f rte_kni", "# ", 5)