[dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support
yufengmx
yufengx.mo at intel.com
Mon Feb 17 06:18:33 CET 2020
tests/unit_tests_timer: x722 support.
x722 support.
Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
tests/TestSuite_unit_tests_timer.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_tests_timer.py
index d53d827..525220c 100644
--- a/tests/TestSuite_unit_tests_timer.py
+++ b/tests/TestSuite_unit_tests_timer.py
@@ -72,12 +72,18 @@ class TestUnitTestsTimer(TestCase):
"""
pass
+ def get_nic_timeout(self):
+ if self.nic in ["x722_37d2"]:
+ return 120
+ return 60
+
def test_timer(self):
"""
Run timer autotest.
"""
eal_params = self.dut.create_eal_parameters(cores=self.cores)
- self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+ timeout = self.get_nic_timeout()
+ self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", timeout)
out = self.dut.send_expect("timer_autotest", "RTE>>", self.this_timeout)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
2.21.0
More information about the dts
mailing list