test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
@ 2020-09-24  3:23 Xie wei
  2020-09-24  3:24 ` Xie, WeiX
  2020-10-12  8:07 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Xie wei @ 2020-09-24  3:23 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

Link speed unit conversion, the Mbps transfer to the Gbps

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 66389a29..965c6593 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -144,7 +144,7 @@ class TestKernelpfIavf(TestCase):
         self.sriov_vfs_port = self.dut.ports_info[
             self.used_dut_port]['vfs_port']
         out = self.dut.send_expect('ethtool %s' % self.host_intf, '#')
-        self.speed = re.findall('Speed: (\d*)', out)[0]
+        self.speed = int(re.findall('Speed: (\d*)', out)[0])//1000
         if self.nic.startswith('columbiaville'):
             self.dut.send_expect("ip link set %s vf 0 spoofchk off" %(self.host_intf), "# ")
         if self.running_case == "test_vf_multicast":
-- 
2.17.1


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

end of thread, other threads:[~2020-10-12  8:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24  3:23 [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps Xie wei
2020-09-24  3:24 ` Xie, WeiX
2020-09-29  2:07   ` Ma, LihongX
2020-10-12  8:07 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).