[dts] [PATCH V1] test/unit_test_eal: bind ports before verifying result
Wenjie Li
wenjiex.a.li at intel.com
Fri Apr 19 06:59:58 CEST 2019
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