test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params
  2021-02-02 14:23 [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params Ling Wei
@ 2021-02-02  6:34 ` Ling, WeiX
  2021-02-02 13:48   ` Wang, Yinan
  2021-02-03  6:21 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2021-02-02  6:34 UTC (permalink / raw)
  To: Ling, WeiX, dts

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Tested-by: Wei Ling <weix.ling@intel.com>

Regards,
Ling Wei

> -----Original Message-----
> From: Ling Wei <weix.ling@intel.com>
> Sent: Tuesday, February 2, 2021 10:24 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V2] framework/pmd_output:start_testpmd interface
> support expected params


[-- Attachment #2: TestLoopbackVirtioUserServerMode.log --]
[-- Type: application/octet-stream, Size: 29649 bytes --]

[-- Attachment #3: TestVhostUserInterrupt.log --]
[-- Type: application/octet-stream, Size: 41729 bytes --]

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

* Re: [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params
  2021-02-02  6:34 ` Ling, WeiX
@ 2021-02-02 13:48   ` Wang, Yinan
  0 siblings, 0 replies; 4+ messages in thread
From: Wang, Yinan @ 2021-02-02 13:48 UTC (permalink / raw)
  To: Ling, WeiX, Ling, WeiX, dts

Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?2?2? 14:35
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V2] framework/pmd_output:start_testpmd interface
> support expected params
> 
> Tested-by: Wei Ling <weix.ling@intel.com>
> 
> Regards,
> Ling Wei
> 
> > -----Original Message-----
> > From: Ling Wei <weix.ling@intel.com>
> > Sent: Tuesday, February 2, 2021 10:24 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V2] framework/pmd_output:start_testpmd interface
> > support expected params


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

* [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params
@ 2021-02-02 14:23 Ling Wei
  2021-02-02  6:34 ` Ling, WeiX
  2021-02-03  6:21 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Ling Wei @ 2021-02-02 14:23 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

v1:
In DPDK 9af79db20f4cf,when launch virtio-user testpmd as server mode,
 virtio-user server side testpmd expected character will be 
'wait for client side started...', after client side started, 
it change to 'testpmd>'.

v2:
Modify patch comments style issues.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 framework/pmd_output.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 3daa86b..1ad4ce7 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -103,7 +103,7 @@ class PmdOutput():
     def get_pmd_cmd(self):
         return self.command
 
-    def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, **config):
+    def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, expected='testpmd> ', **config):
         """
         start testpmd with input parameters.
         :param cores: eg:
@@ -148,7 +148,7 @@ class PmdOutput():
         command = command.replace('  ', ' ')
         if self.session != self.dut:
             self.session.send_expect("cd %s" % self.dut.base_dir, "# ")
-        out = self.session.send_expect(command, "testpmd> ", 120)
+        out = self.session.send_expect(command, expected, 120)
         self.command = command
         # wait 10s to ensure links getting up before test start.
         sleep(10)
-- 
2.25.1


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

* Re: [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params
  2021-02-02 14:23 [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params Ling Wei
  2021-02-02  6:34 ` Ling, WeiX
@ 2021-02-03  6:21 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-02-03  6:21 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> v1:
> In DPDK 9af79db20f4cf,when launch virtio-user testpmd as server mode,  virtio-
> user server side testpmd expected character will be 'wait for client side
> started...', after client side started, it change to 'testpmd>'.
> 
> v2:
> Modify patch comments style issues.
> 
> Signed-off-by: Ling Wei <weix.ling@intel.com>

Applied, thanks

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

end of thread, other threads:[~2021-02-03  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 14:23 [dts] [PATCH V2] framework/pmd_output:start_testpmd interface support expected params Ling Wei
2021-02-02  6:34 ` Ling, WeiX
2021-02-02 13:48   ` Wang, Yinan
2021-02-03  6:21 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	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

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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