[dts] [PATCH] test/shot_live: fix expecting string

Thinh Tran thinhtr at linux.vnet.ibm.com
Wed Mar 4 16:24:26 CET 2020


- 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