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 ED91058D4 for ; Fri, 4 Dec 2015 10:19:26 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 04 Dec 2015 01:19:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,380,1444719600"; d="scan'208";a="864532954" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga002.jf.intel.com with ESMTP; 04 Dec 2015 01:19:09 -0800 From: yongjie To: dts@dpdk.org Date: Fri, 4 Dec 2015 17:14:41 +0800 Message-Id: <1449220481-11071-1-git-send-email-yongjiex.gu@intel.com> X-Mailer: git-send-email 1.9.3 Cc: Gu yongjie Subject: [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: Fri, 04 Dec 2015 09:19:27 -0000 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) -- 1.7.4.4