[dts] [PATCH] forcibly remove kni mode in unit test kni

yongjie yongjiex.gu at intel.com
Fri Dec 4 10:14:41 CET 2015


From: Gu yongjie <yongjiex.gu at intel.com>

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 <yongjiex.gu at intel.com>
---
 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



More information about the dts mailing list