test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue
@ 2020-07-28  3:00 Xiao Qimai
  2020-08-13  2:51 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Qimai @ 2020-07-28  3:00 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

*. dpdk promte 'testpmd> ' might be misspelled when print 

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_virtio_pvp_regression.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_virtio_pvp_regression.py b/tests/TestSuite_virtio_pvp_regression.py
index 225fc35..942c924 100644
--- a/tests/TestSuite_virtio_pvp_regression.py
+++ b/tests/TestSuite_virtio_pvp_regression.py
@@ -257,7 +257,14 @@ class TestVirtioPVPRegression(TestCase):
         command_line_client = testcmd + eal_params + para
         self.vhost.send_expect(command_line_client, "testpmd> ", 30)
         self.vhost.send_expect("set fwd mac", "testpmd> ", 30)
-        self.vhost.send_expect("start", "testpmd> ", 30)
+        try:
+            self.vhost.send_expect("start", "testpmd> ", 30)
+        except Exception as e:
+            self.logger.warning(e)
+            self.logger.info('dpdk prompt testpmd> may not be printed correctly, add retry')
+            time.sleep(2)
+            self.vhost.send_expect('', 'testpmd> ', timeout=1)
+
 
     def start_testpmd_in_vm(self, virtio_path):
         """
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue
  2020-07-28  3:00 [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue Xiao Qimai
@ 2020-08-13  2:51 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-08-13  2:51 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

> Subject: [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte
> to avoid print sequence issue
> 
> *. dpdk promte 'testpmd> ' might be misspelled when print
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
>  tests/TestSuite_virtio_pvp_regression.py | 9 ++++++++-

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28  3:00 [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue Xiao Qimai
2020-08-13  2:51 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox