[dts] [PATCH] test/shot_live: fix expecting string
Tu, Lijuan
lijuan.tu at intel.com
Fri Mar 13 07:29:39 CET 2020
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Thinh Tran
> Sent: Wednesday, March 4, 2020 11:24 PM
> To: dts at dpdk.org
> Cc: drc at linux.vnet.ibm.com; Thinh Tran <thinhtr at linux.vnet.ibm.com>
> Subject: [dts] [PATCH] test/shot_live: fix expecting string
>
> - Not sure the "link state change event" is specific string for others,
> in general the testpmd does not produce it, but returns its prompt.
> This causes testcase Failed - TIMEOUT
> - change it back to expecting testpmd prompt
>
> Signed-off-by: Thinh Tran <thinhtr at linux.vnet.ibm.com>
> ---
> tests/TestSuite_short_live.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
> index 31adf0d..3e088ce 100644
> --- a/tests/TestSuite_short_live.py
> +++ b/tests/TestSuite_short_live.py
> @@ -168,7 +168,7 @@ class TestShortLiveApp(TestCase):
> for i in range(repeat_time):
> #dpdk start
> print("clean_up_with_signal_testpmd round %d" % (i + 1))
> - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i --
> portmask=0x3" % self.target, "link state change event", 120)
> + self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i
> + --portmask=0x3" % self.target, "testpmd>", 120)
> self.dut.send_expect("set fwd mac", "testpmd>")
> self.dut.send_expect("set promisc all off", "testpmd>")
> self.dut.send_expect("start", "testpmd>")
> --
> 2.17.1
More information about the dts
mailing list