[dts] [PATCH V1] test/unit_test_eal: bind ports before verifying result
Tu, Lijuan
lijuan.tu at intel.com
Tue Apr 23 01:45:16 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Wenjie Li
> Sent: Thursday, April 18, 2019 10: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