test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] forcibly remove kni mode in unit test kni
@ 2015-12-04  9:14 yongjie
  2015-12-07  1:23 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: yongjie @ 2015-12-04  9:14 UTC (permalink / raw)
  To: dts; +Cc: Gu yongjie

From: Gu yongjie <yongjiex.gu@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@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] forcibly remove kni mode in unit test kni
  2015-12-04  9:14 [dts] [PATCH] forcibly remove kni mode in unit test kni yongjie
@ 2015-12-07  1:23 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-12-07  1:23 UTC (permalink / raw)
  To: yongjie, dts

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 <yongjiex.gu@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@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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-07  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04  9:14 [dts] [PATCH] forcibly remove kni mode in unit test kni yongjie
2015-12-07  1:23 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).