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

Liu, Yong yong.liu at intel.com
Mon Dec 7 02:23:11 CET 2015


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 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)



More information about the dts mailing list