[dts] [PATCH V1] tests/flags unbind devices to DPDK

yaobing bingx.y.yao at intel.com
Tue Dec 11 08:38:30 CET 2018


this test just wants to make sure the memory allocation adn
de-allocation behavior in clean running environment,so not 
having any devices bound to DPDK should be the prerequisite 
for running this test

Signed-off-by: yaobing <bingx.y.yao at intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 68a4cbe..c876295 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -260,12 +260,14 @@ class TestUnitTestsEal(TestCase):
         """
         Run eal flags autotest.
         """
-
+        
+        self.dut.unbind_interfaces_linux()
         self.dut.send_expect(self.test_app_cmdline + ' -m 64', "R.*T.*E.*>.*>", self.start_test_time)
         # 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()
 
     def test_alarm(self):
         """
-- 
2.17.2



More information about the dts mailing list