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

Xie Wei weix.xie at intel.com
Mon Jan 20 08:03:10 CET 2020


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