[0/2] tests/speed_capabilities: Document and convert to a common speed unit

Message ID 20230703192542.36809-1-niklas.soderlund@corigine.com (mailing list archive)


Niklas Söderlund July 3, 2023, 7:25 p.m. UTC

This small series addresses and issue where the speed read from a PMD 
may have different unit (Mbps vs Gbps). As the existing use-case depends 
on the speed read from the PMD is in Mbps document this and convert to 
it if it's read in Gbps.

The second patch is a small optimization where the test can fail faster 
if it can't read the speed from the PMD.

Qin Ke (2):
  framework/pmd_output: report link speed in Mbps
  tests/speed_capabilities: optimize code sequence of test case

 framework/pmd_output.py               | 12 +++++++++++-
 tests/TestSuite_pmd_bonded.py         | 12 +++++++++++-
 tests/TestSuite_speed_capabilities.py | 16 ++++++++--------
 tests/TestSuite_vf_pmd_bonded.py      | 12 +++++++++++-
 4 files changed, 41 insertions(+), 11 deletions(-)