[dts] [PATCH] fix queue start/stop case failed sometime print can't get received package info, used self.dut.get_session_output() replace self.dut.send_expect("\n", "testpmd>") get received package info

Liu, Yong yong.liu at intel.com
Fri Oct 23 09:33:40 CEST 2015


Huilong,
It's better to separated the commit into two parts. This first part just 
one simple line describe the patch.
The second part is the detail description of the patch. Below is one 
sample for commit log.

tests: fix queue start/stop case can't capture log

Sometime print can't get received package info, used 
self.dut.get_session_output() replace self.dut.send_expect("\n", 
"testpmd>")  to get received package info.

Signed-off-by: XXXXXXX at XXXXXX

On 10/23/2015 03:02 PM, xu,huilong wrote:
> Signed-off-by: xu,huilong <huilongx.xu at intel.com>
> ---
>   tests/TestSuite_queue_start_stop.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
> index 83504ab..f59333c 100644
> --- a/tests/TestSuite_queue_start_stop.py
> +++ b/tests/TestSuite_queue_start_stop.py
> @@ -164,7 +164,7 @@ class TestQueueStartStop(TestCase):
>               self.dut.send_expect("port 1 txq 0 stop", "testpmd>")
>               self.dut.send_expect("start", "testpmd>")
>               self.check_forwarding([0, 1], self.nic, received=False)
> -            out = self.dut.send_expect("\n", "testpmd>")
> +            out = self.dut.get_session_output()
>           except Exception, e:
>               raise IOError("queue start/stop forward failure: %s" % e)
>   



More information about the dts mailing list