[dts] [PATCH V1] test/unit_test_eal: bind ports before verifying result
Li, WenjieX A
wenjiex.a.li at intel.com
Fri Apr 19 07:03:23 CEST 2019
Tested-by: Li, WenjieX A <wenjiex.a.li at intel.com>
> -----Original Message-----
> From: Li, WenjieX A
> Sent: Friday, April 19, 2019 1:00 PM
> To: dts at dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li at intel.com>
> Subject: [dts][PATCH V1] test/unit_test_eal: bind ports before verifying result
>
> Should bind the ports before verifying result; otherwise, if the case failed, the
> ports are still unbound, it will affect the later tests.
>
> Signed-off-by: Wenjie Li <wenjiex.a.li at intel.com>
> ---
> tests/TestSuite_unit_tests_eal.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
> index 2249113..07d788f 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -321,8 +321,8 @@ class TestUnitTestsEal(TestCase):
> # on FreeBSD need more time than other OS
> out = self.dut.send_expect("eal_flags_autotest", "RTE>>", 600)
> self.dut.send_expect("quit", "# ")
> - self.verify("Test OK" in out, "Test failed")
> self.dut.bind_interfaces_linux(driver=self.drivername)
> + self.verify("Test OK" in out, "Test failed")
>
> def test_alarm(self):
> """
> --
> 2.17.2
More information about the dts
mailing list