Update expected tshark output in portLat and switchLat tests
Change-Id: Ib7ba52ac919fe08e527efb3d9c0aeac0f22bc5bf
(cherry picked from commit 2eda181ca05a5e4d7fa348a1cbe6b15180acbf67)
diff --git a/TestON/tests/SCPF/SCPFportLat/SCPFportLat.params b/TestON/tests/SCPF/SCPFportLat/SCPFportLat.params
index 7a08b43..c540850 100644
--- a/TestON/tests/SCPF/SCPFportLat/SCPFportLat.params
+++ b/TestON/tests/SCPF/SCPFportLat/SCPFportLat.params
@@ -33,7 +33,7 @@
</CFG>
<TSHARK>
<tsharkReusltPath>/tmp/tshark_portStatus</tsharkReusltPath>
- <ofpPortStatus>OF 1.3 146</ofpPortStatus>
+ <ofpPortStatus>OpenFlow 146</ofpPortStatus>
</TSHARK>
<SLEEP>
<startup>5</startup>
diff --git a/TestON/tests/SCPF/SCPFportLat/dependencies/portFunc.py b/TestON/tests/SCPF/SCPFportLat/dependencies/portFunc.py
index 4c94193..10dc7ce 100644
--- a/TestON/tests/SCPF/SCPFportLat/dependencies/portFunc.py
+++ b/TestON/tests/SCPF/SCPFportLat/dependencies/portFunc.py
@@ -51,7 +51,7 @@
with open( main.tsharkResultPath, "r" ) as resultFile:
resultText = resultFile.readline()
main.log.info( "Capture result:" + resultText )
- resultText = resultText.split( " " )
+ resultText = resultText.strip().split( " " )
if len( resultText ) > 1:
tsharkResultTime = int( float( resultText[ 1 ] ) * 1000.0 )
resultFile.close()