[dts] [PATCH V1] tests/vm_hotplug:str transfer int

Tu, Lijuan lijuan.tu at intel.com
Mon Jan 20 09:02:55 CET 2020


applied

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xie Wei
> Sent: Monday, January 20, 2020 3:03 PM
> To: dts at dpdk.org
> Cc: Xie, WeiX <weix.xie at intel.com>
> Subject: [dts] [PATCH V1] tests/vm_hotplug:str transfer int
> 
> Signed-off-by: Xie Wei <weix.xie at intel.com>
> ---
>  tests/TestSuite_vm_hotplug.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.py
> index 276a0b8..3b79417 100644
> --- a/tests/TestSuite_vm_hotplug.py
> +++ b/tests/TestSuite_vm_hotplug.py
> @@ -274,7 +274,7 @@ class TestVmHotplug(TestCase):
>          out = self.get_tcpdump_package(iface_list)
>          for pkt_num in out:
>              # rule out miscellaneous package possibility
> -            self.verify(pkt_num > 1000, 'vf send packet fail')
> +            self.verify(int(pkt_num) > 1000, 'vf send packet fail')
> 
>      def check_vf_device(self, has_device=True, device=1):
>          time.sleep(1)
> --
> 2.17.2



More information about the dts mailing list