test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue
Date: Tue, 28 Jul 2020 03:00:43 +0000	[thread overview]
Message-ID: <20200728030043.256733-1-qimaix.xiao@intel.com> (raw)

*. 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


             reply	other threads:[~2020-07-28  3:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28  3:00 Xiao Qimai [this message]
2020-08-13  2:51 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200728030043.256733-1-qimaix.xiao@intel.com \
    --to=qimaix.xiao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).