* [dts] [PATCH V1 0/1] tests/unit_tests_timer: x722 support @ 2020-02-17 5:18 yufengmx 2020-02-17 5:18 ` [dts] [PATCH V1 1/1] " yufengmx 0 siblings, 1 reply; 3+ messages in thread From: yufengmx @ 2020-02-17 5:18 UTC (permalink / raw) To: dts, lihongx.ma; +Cc: yufengmx x722 support. yufengmx (1): tests/unit_tests_timer: x722 support tests/TestSuite_unit_tests_timer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.21.0 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support 2020-02-17 5:18 [dts] [PATCH V1 0/1] tests/unit_tests_timer: x722 support yufengmx @ 2020-02-17 5:18 ` yufengmx 2020-02-17 9:45 ` Tu, Lijuan 0 siblings, 1 reply; 3+ messages in thread From: yufengmx @ 2020-02-17 5:18 UTC (permalink / raw) To: dts, lihongx.ma; +Cc: yufengmx tests/unit_tests_timer: x722 support. x722 support. Signed-off-by: yufengmx <yufengx.mo@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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support 2020-02-17 5:18 ` [dts] [PATCH V1 1/1] " yufengmx @ 2020-02-17 9:45 ` Tu, Lijuan 0 siblings, 0 replies; 3+ messages in thread From: Tu, Lijuan @ 2020-02-17 9:45 UTC (permalink / raw) To: Mo, YufengX, dts, Ma, LihongX; +Cc: Mo, YufengX Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > Sent: Monday, February 17, 2020 1:19 PM > To: dts@dpdk.org; Ma, LihongX <lihongx.ma@intel.com> > Cc: Mo, YufengX <yufengx.mo@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@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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-17 9:46 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-02-17 5:18 [dts] [PATCH V1 0/1] tests/unit_tests_timer: x722 support yufengmx 2020-02-17 5:18 ` [dts] [PATCH V1 1/1] " yufengmx 2020-02-17 9:45 ` Tu, Lijuan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).