* [dts] [PATCH] test/shot_live: fix expecting string
@ 2020-03-04 15:24 Thinh Tran
2020-03-13 6:29 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Thinh Tran @ 2020-03-04 15:24 UTC (permalink / raw)
To: dts; +Cc: drc, Thinh Tran
- 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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] test/shot_live: fix expecting string
2020-03-04 15:24 [dts] [PATCH] test/shot_live: fix expecting string Thinh Tran
@ 2020-03-13 6:29 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-03-13 6:29 UTC (permalink / raw)
To: Thinh Tran, dts; +Cc: drc
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Thinh Tran
> Sent: Wednesday, March 4, 2020 11:24 PM
> To: dts@dpdk.org
> Cc: drc@linux.vnet.ibm.com; Thinh Tran <thinhtr@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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-13 6:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04 15:24 [dts] [PATCH] test/shot_live: fix expecting string Thinh Tran
2020-03-13 6:29 ` 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).