[dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support
Tu, Lijuan
lijuan.tu at intel.com
Mon Feb 17 10:45:53 CET 2020
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yufengmx
> Sent: Monday, February 17, 2020 1:19 PM
> To: dts at dpdk.org; Ma, LihongX <lihongx.ma at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support
>
>
> 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