[dts] [PATCH V1] framework/tester: fix not get all the content of a datagram

Liu, Yong yong.liu at intel.com
Wed Sep 6 05:28:53 CEST 2017


Peipei,
Please give the sample which current parsing method can't work for it.
Several test cases are still using scapy_get_result to strip the result.
It is need to make sure that this patch won't affect all those test cases.

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Lu, PeipeiX
> Sent: Tuesday, September 05, 2017 10:38 AM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu at intel.com>
> Subject: Re: [dts] [PATCH V1] framework/tester: fix not get all the
> content of a datagram
> 
> Hi yong
>   Pls  merge the patch to dts. Thanks
> 
> peipei
> 
> -----Original Message-----
> From: Lu, PeipeiX
> Sent: Thursday, August 31, 2017 4:08 PM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX
> Subject: [dts][PATCH V1] framework/tester: fix not get all the content of
> a datagram
> 
> Some time get result need to get all the content of a datagram, the
> original code only get part of the content.
> 
> Signed-off-by: lu,peipei <peipeix.lu at intel.com>
> ---
>  framework/tester.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/framework/tester.py b/framework/tester.py index
> e7fb6bc..1611ade 100644
> --- a/framework/tester.py
> +++ b/framework/tester.py
> @@ -489,7 +489,7 @@ class Tester(Crb):
>          out = self.send_expect("cat scapyResult.txt", "# ")
>          self.logger.info('SCAPY Result:\n' + out + '\n\n\n')
> 
> -        return out.rpartition('[')[0]
> +        return out.rpartition('>>>')[0]
> 
>      def traffic_generator_throughput(self, portList, rate_percent=100,
> delay=5):
>          """
> --
> 1.9.3



More information about the dts mailing list